mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 11:44:48 +08:00
sleep 5 before reconnect (for kicking off)
This commit is contained in:
parent
ef990b3b23
commit
d28637fc38
@ -45,7 +45,6 @@ xl2tpd_stop() {
|
|||||||
type systemctl >/dev/null 2>&1 && {
|
type systemctl >/dev/null 2>&1 && {
|
||||||
systemctl xl2tpd stop
|
systemctl xl2tpd stop
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
xl2tpd_start() {
|
xl2tpd_start() {
|
||||||
@ -139,9 +138,10 @@ connect() {
|
|||||||
then
|
then
|
||||||
echo "[INFO] Connection terminated."
|
echo "[INFO] Connection terminated."
|
||||||
echo -n > $PPP_LOG_FILE
|
echo -n > $PPP_LOG_FILE
|
||||||
echo "[INFO] Retrying now. (force kicking off, may take some time)"
|
echo "[INFO] Retrying now. (try to kick off, may take some time)"
|
||||||
xl2tpd_disconnect ${LAC_NAME}
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
xl2tpd_disconnect ${LAC_NAME}
|
||||||
|
sleep 5
|
||||||
xl2tpd_connect ${LAC_NAME}
|
xl2tpd_connect ${LAC_NAME}
|
||||||
fi
|
fi
|
||||||
echo -n > $PPP_LOG_FILE
|
echo -n > $PPP_LOG_FILE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user