brickall 发表2012-12-17 12:56
修改一下hotspot id和username就行了
#license must be the same with license in wifiAPcenter 机器码(修改为你的热点机器码)
license= wifiapkey
#hotspotname must be the same with HotspotName in wifiAPcenter 热点名称
hotspotname= wifiaplei
#enable( 1 ) or disable( 0 ) Captiveportal 启动或禁用认证功能
auth= 1
#code begin,Don’t edit it 以下代码不需要修改
if [ $auth = 1 ]
then
key= `/bin/echo -n $license$hotspotname |/usr/bin/md5sum|/usr/bin/awk ‘{print $1}’`
echo $key /tmp/wifiap_wifidog.key
res=1
while [ $res -ne 0 ]
do
/usr/bin/wget -t 3 -T 20 http://c.wifiap.cn/c/router_api_cmd_op.php?gw_id=$hotspotname key=$key action=getscript pnum=1 -O /tmp/wifiap_wifidog_watch.sh
res=$?
if [ $res -eq 0 ]
then
read firstline /tmp/wifiap_wifidog_watch.sh
if [ $firstline = #/bin/sh ]
then
res=0
else
res=1
/bin/sleep 10
fi
else
/bin/sleep 10
fi
done
/bin/chmod +x /tmp/wifiap_wifidog_watch.sh
/bin/sh /tmp/wifiap_wifidog_watch.sh
fi
#code end
谢谢回复!根据我得到的脚本为上!求教!上面的怎么改?谢谢楼主回复和帮助!小弟感激不尽!小弟就是这里没有弄清楚了!谢谢先!!!