mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 19:54:48 +08:00
add disconnect back
This commit is contained in:
parent
e1c3bf4375
commit
8b6cfbf6b2
@ -18,8 +18,6 @@
|
|||||||
# along with this program. If not, see
|
# along with this program. If not, see
|
||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# init
|
|
||||||
|
|
||||||
L2TPD_CFG_FILE=/etc/xl2tpd/xl2tpd.conf
|
L2TPD_CFG_FILE=/etc/xl2tpd/xl2tpd.conf
|
||||||
|
|
||||||
BASEDIR=$(dirname $0)
|
BASEDIR=$(dirname $0)
|
||||||
|
|||||||
@ -74,6 +74,8 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
disconnect
|
||||||
|
sleep 3
|
||||||
connect
|
connect
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
@ -138,6 +138,7 @@ xl2tpd_waituser() {
|
|||||||
xl2tpd_disconnect ${LAC_NAME}
|
xl2tpd_disconnect ${LAC_NAME}
|
||||||
sleep 5
|
sleep 5
|
||||||
xl2tpd_connect ${LAC_NAME}
|
xl2tpd_connect ${LAC_NAME}
|
||||||
|
echo "[INFO] again"
|
||||||
fi
|
fi
|
||||||
echo -n > $PPP_LOG_FILE
|
echo -n > $PPP_LOG_FILE
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user