From 8b6cfbf6b27ff337630ee1c61aa24992e3f20a89 Mon Sep 17 00:00:00 2001 From: Zeno Zeng Date: Sat, 22 Nov 2014 17:37:43 +0800 Subject: [PATCH] add disconnect back --- lib/user.sh | 2 -- lib/vpn.sh | 2 ++ lib/xl2tpd.sh | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/user.sh b/lib/user.sh index 0060d24..347eca3 100755 --- a/lib/user.sh +++ b/lib/user.sh @@ -18,8 +18,6 @@ # along with this program. If not, see # . -# init - L2TPD_CFG_FILE=/etc/xl2tpd/xl2tpd.conf BASEDIR=$(dirname $0) diff --git a/lib/vpn.sh b/lib/vpn.sh index 556a831..dfa1466 100755 --- a/lib/vpn.sh +++ b/lib/vpn.sh @@ -74,6 +74,8 @@ case "$1" in ;; *) + disconnect + sleep 3 connect ;; diff --git a/lib/xl2tpd.sh b/lib/xl2tpd.sh index 2d4145a..14beabe 100755 --- a/lib/xl2tpd.sh +++ b/lib/xl2tpd.sh @@ -138,6 +138,7 @@ xl2tpd_waituser() { xl2tpd_disconnect ${LAC_NAME} sleep 5 xl2tpd_connect ${LAC_NAME} + echo "[INFO] again" fi echo -n > $PPP_LOG_FILE