1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-23 04:04:48 +08:00

Added ZJUWLAN authentication indicator (not that reliable)

This commit is contained in:
Senorsen 2014-09-28 21:59:48 +08:00
parent 0a47380bff
commit 4c6230f6ba

View File

@ -4,6 +4,7 @@
# #
# Copyright (C) 2014 Zeno Zeng <zenoofzeng@gmail.com> # Copyright (C) 2014 Zeno Zeng <zenoofzeng@gmail.com>
# Copyright (C) 2014 Hexcles Ma <bob1211@gmail.com> # Copyright (C) 2014 Hexcles Ma <bob1211@gmail.com>
# Copyright (C) 2014 Senorsen Zhang <sen@senorsen.com>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -96,8 +97,13 @@ for dev in $devs; do
done done
# WLAN # WLAN
cmd="${cmd} nexthop via ${gateway}" ip route replace 10.202.68.44 via ${gateway}
zjuwlan_status=`curl 10.202.68.44 | grep net.zju.edu.cn | wc -l`
if [ $zjuwlan_status -gt 0 ]
then
cmd="${cmd} nexthop via ${gateway}"
fi
ip route del 10.202.68.44 || true
$cmd $cmd
ip route ip route