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

sleep 5 before reconnect (for kicking off)

This commit is contained in:
Zeno Zeng 2014-10-14 15:35:05 +08:00
parent ef990b3b23
commit d28637fc38

View File

@ -45,7 +45,6 @@ xl2tpd_stop() {
type systemctl >/dev/null 2>&1 && {
systemctl xl2tpd stop
}
}
xl2tpd_start() {
@ -139,9 +138,10 @@ connect() {
then
echo "[INFO] Connection terminated."
echo -n > $PPP_LOG_FILE
echo "[INFO] Retrying now. (force kicking off, may take some time)"
xl2tpd_disconnect ${LAC_NAME}
echo "[INFO] Retrying now. (try to kick off, may take some time)"
sleep 1
xl2tpd_disconnect ${LAC_NAME}
sleep 5
xl2tpd_connect ${LAC_NAME}
fi
echo -n > $PPP_LOG_FILE