mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 19:54:48 +08:00
Added ZJUWLAN authentication indicator (not that reliable)
This commit is contained in:
parent
0a47380bff
commit
4c6230f6ba
8
route.sh
8
route.sh
@ -4,6 +4,7 @@
|
||||
#
|
||||
# Copyright (C) 2014 Zeno Zeng <zenoofzeng@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
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -96,8 +97,13 @@ for dev in $devs; do
|
||||
done
|
||||
|
||||
# WLAN
|
||||
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
|
||||
ip route
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user