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

View File

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