1.编译时,选上 nodogsplash 软件包

Symbol: PACKAGE_nodogsplash [=y]
 Type  : tristate
   Prompt: nodogsplash........................... Open public network gateway daemon                 x
     Location:
       -> Network
        -> Captive Portals    

由于新版本的 nodogsplash 默认是没有配置文件,需要我们自己手动去添加,参考:http://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash
Nodogsplash
/etc/nodogsplash/nodogsplash.conf

需要修改的地方:
GatewayInterface br-lan

然后再路由上面运行 ,手机连接上wifi。随便打开一个网站,都会被强制跳转到nodogsplash定义好的web界面,该界面位于
/etc/nodogsplash/htdocs/splash.html

RedirectURL http://www.csdn.net/
这个是登录后强制跳转的网址。不需要的可以注释掉