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

echo -n >

This commit is contained in:
Zeno Zeng 2014-09-21 17:23:49 +08:00
parent cedf768f4e
commit c089a89f7d

View File

@ -21,7 +21,6 @@
PPP_LOG_FILE=/var/log/zjuvpn
xl2tpd_restart() {
# for Openwrt / Debian / Ubuntu
@ -97,9 +96,10 @@ connect() {
prev_count=$(ip addr show | grep 'inet.*ppp' | grep ' 10.5.' | wc -l)
for i in $(seq 0 120); do
for i in $(seq 0 60); do
tail $PPP_LOG_FILE
echo -n > $PPP_LOG_FILE
count=$(ip addr show | grep 'inet.*ppp' | grep ' 10.5.' | wc -l)
if [ ${count} -gt ${prev_count} ]; then