mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 11:44:48 +08:00
restart xl2tpd only if necessary
This commit is contained in:
parent
81f093d79d
commit
167a3591ba
@ -109,13 +109,17 @@ connect() {
|
|||||||
case $1 in
|
case $1 in
|
||||||
|
|
||||||
connect)
|
connect)
|
||||||
xl2tpd_restart
|
if [ ! -e $L2TPD_CONTROL_FILE ]; then
|
||||||
|
xl2tpd_restart
|
||||||
|
fi
|
||||||
xl2tpd_create_lac
|
xl2tpd_create_lac
|
||||||
connect
|
connect
|
||||||
;;
|
;;
|
||||||
|
|
||||||
disconnect)
|
disconnect)
|
||||||
xl2tpd-control disconnect ${LAC_NAME}
|
xl2tpd-control disconnect ${LAC_NAME}
|
||||||
|
tail $PPP_LOG_FILE
|
||||||
|
echo -n > $PPP_LOG_FILE
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user