1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-22 19:54:48 +08:00
This commit is contained in:
Zeno Zeng 2014-09-30 15:24:58 +08:00
parent 783852a444
commit bb0b00b94a

View File

@ -100,7 +100,7 @@ done
zjuwlan_test_ip=10.202.68.44 zjuwlan_test_ip=10.202.68.44
ip route replace $zjuwlan_test_ip via ${gateway} ip route replace $zjuwlan_test_ip via ${gateway}
zjuwlan_status=`curl -s $zjuwlan_test_ip | grep net.zju.edu.cn | wc -l` zjuwlan_status=`curl -s $zjuwlan_test_ip | grep net.zju.edu.cn | wc -l`
if [ $zjuwlan_status -gt 0 ] if [ $zjuwlan_status -eq 0 ]
then then
cmd="${cmd} nexthop via ${gateway}" cmd="${cmd} nexthop via ${gateway}"
fi fi