mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Fix ip-up pingtest answer
This commit is contained in:
@@ -52,7 +52,7 @@ TEST=`/usr/bin/ping -c 2 $5 2>/dev/null | tail -2 | head -1 | cut -d"," -f2`;
|
||||
|
||||
grep -v "gateway" /etc/hosts > /tmp/hosts
|
||||
|
||||
if [ "$TEST" == " 2 packets received" ]; then
|
||||
if [ "$TEST" == " 2 received" ]; then
|
||||
#ping the ppp-gateway
|
||||
echo "$5 gateway" >> /tmp/hosts
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user