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

remove log

This commit is contained in:
Zeno Zeng 2014-10-13 21:26:01 +08:00
parent 4cfe165573
commit c8003380d6
2 changed files with 2 additions and 6 deletions

View File

@ -48,9 +48,7 @@ connect() {
password=$("${BASEDIR}/user.sh" getpwd $username) password=$("${BASEDIR}/user.sh" getpwd $username)
echo "[INFO] Login using ${username}" echo "[INFO] Login using ${username}"
"${BASEDIR}/sudo.sh" "${BASEDIR}/xl2tpd.sh" connect $username $password "${BASEDIR}/sudo.sh" "${BASEDIR}/xl2tpd.sh" connect $username $password
echo ------ flush
flush flush
echo ------ febd
done done
"${BASEDIR}/sudo.sh" "${BASEDIR}/route.sh" "${BASEDIR}/sudo.sh" "${BASEDIR}/route.sh"

View File

@ -65,7 +65,7 @@ xl2tpd_restart() {
xl2tpd_stop xl2tpd_stop
rm -f ${XL2TPD_CONTROL_FILE} rm -f ${XL2TPD_CONTROL_FILE}
xl2tpd_start xl2tpd_start
# wait until ready # wait until ready
for i in $(seq 0 10); do for i in $(seq 0 10); do
if [ -e ${XL2TPD_CONTROL_FILE} ]; then if [ -e ${XL2TPD_CONTROL_FILE} ]; then
@ -104,7 +104,7 @@ ppp debug = no
pppoptfile = ${PPP_OPT_FILE} pppoptfile = ${PPP_OPT_FILE}
require pap = no require pap = no
autodial = yes autodial = yes
EOF EOF
fi fi
} }
@ -124,11 +124,9 @@ connect() {
echo -n > $PPP_LOG_FILE echo -n > $PPP_LOG_FILE
prev_count=$(ip addr show | grep 'inet.*ppp' | grep ' 10.5.' | wc -l) prev_count=$(ip addr show | grep 'inet.*ppp' | grep ' 10.5.' | wc -l)
echo $LOG_FILE
for i in $(seq 0 10000); do for i in $(seq 0 10000); do
tail $PPP_LOG_FILE >> /home/xero/tmp/ttttt
tail $PPP_LOG_FILE >> $LOG_FILE tail $PPP_LOG_FILE >> $LOG_FILE
if [ $(tail $PPP_LOG_FILE | grep 'Connection terminated' | wc -l) -ne 0 ] if [ $(tail $PPP_LOG_FILE | grep 'Connection terminated' | wc -l) -ne 0 ]
then then