From c8003380d6f879297317283d931244da2b7e9efb Mon Sep 17 00:00:00 2001 From: Zeno Zeng Date: Mon, 13 Oct 2014 21:26:01 +0800 Subject: [PATCH] remove log --- lib/vpn.sh | 2 -- lib/xl2tpd.sh | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/vpn.sh b/lib/vpn.sh index 1f20295..0ecc926 100755 --- a/lib/vpn.sh +++ b/lib/vpn.sh @@ -48,9 +48,7 @@ connect() { password=$("${BASEDIR}/user.sh" getpwd $username) echo "[INFO] Login using ${username}" "${BASEDIR}/sudo.sh" "${BASEDIR}/xl2tpd.sh" connect $username $password - echo ------ flush flush - echo ------ febd done "${BASEDIR}/sudo.sh" "${BASEDIR}/route.sh" diff --git a/lib/xl2tpd.sh b/lib/xl2tpd.sh index af67e14..08c19a9 100755 --- a/lib/xl2tpd.sh +++ b/lib/xl2tpd.sh @@ -65,7 +65,7 @@ xl2tpd_restart() { xl2tpd_stop rm -f ${XL2TPD_CONTROL_FILE} xl2tpd_start - + # wait until ready for i in $(seq 0 10); do if [ -e ${XL2TPD_CONTROL_FILE} ]; then @@ -104,7 +104,7 @@ ppp debug = no pppoptfile = ${PPP_OPT_FILE} require pap = no autodial = yes - + EOF fi } @@ -124,11 +124,9 @@ connect() { echo -n > $PPP_LOG_FILE prev_count=$(ip addr show | grep 'inet.*ppp' | grep ' 10.5.' | wc -l) - echo $LOG_FILE for i in $(seq 0 10000); do - tail $PPP_LOG_FILE >> /home/xero/tmp/ttttt tail $PPP_LOG_FILE >> $LOG_FILE if [ $(tail $PPP_LOG_FILE | grep 'Connection terminated' | wc -l) -ne 0 ] then