1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-22 11:44:48 +08:00
zjunet/zjunet.sh
2014-09-18 22:45:38 +08:00

30 lines
434 B
Bash
Executable File

#!/bin/sh
##################################
#
# Router
#
##################################
BASEDIR=$(dirname $0)
case "$1" in
config)
zju_config
;;
ip)
ip route show 0/0 | cut -d " " -f 3
;;
wlan)
# TODO
zju_connect_wlan
;;
vpn)
# if 10.189.xxx => is zjuwlan
# else set up route
;;
dns)
"$BASEDIR/dns.sh"
;;
esac