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

restart xl2tpd only if necessary

This commit is contained in:
Zeno Zeng 2014-09-21 20:14:50 +08:00
parent 81f093d79d
commit 167a3591ba

View File

@ -109,13 +109,17 @@ connect() {
case $1 in
connect)
xl2tpd_restart
if [ ! -e $L2TPD_CONTROL_FILE ]; then
xl2tpd_restart
fi
xl2tpd_create_lac
connect
;;
disconnect)
xl2tpd-control disconnect ${LAC_NAME}
tail $PPP_LOG_FILE
echo -n > $PPP_LOG_FILE
;;
esac