mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-23 04:04:48 +08:00
remove log
This commit is contained in:
parent
4cfe165573
commit
c8003380d6
@ -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"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user