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

ip route flush cache

This commit is contained in:
Zeno Zeng 2014-10-14 17:27:22 +08:00
parent d28637fc38
commit e837d16e7d
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=0.1.2-0
VERSION=0.1.4-0
cd debian
./build.sh $VERSION > /dev/null

View File

@ -20,6 +20,8 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
ip route flush cache
ip_route_del() {
count=$(ip route show $1 | wc -l)
if [ "${count}" -gt "0" ]; then
@ -114,3 +116,5 @@ esac
$cmd
ip route
ip route flush cache

View File

@ -41,7 +41,7 @@ case "$1" in
"${BASEDIR}/dns.sh"
;;
--version)
echo "zjunet version: zjunet-0.1.1"
echo "zjunet version: zjunet-0.1.3"
;;
*)
cat <<EOF
@ -68,6 +68,7 @@ Actions:
disconnect(-d) Logout ZJUWLAN via curl
route Set up ip route
dns Test and set up DNS Server
--version Show Version
EOF
;;
esac