1
0
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:
Zeno Zeng 2014-11-22 17:37:43 +08:00
parent e1c3bf4375
commit 8b6cfbf6b2
3 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -74,6 +74,8 @@ case "$1" in
;; ;;
*) *)
disconnect
sleep 3
connect connect
;; ;;

View File

@ -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