X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fppp%2Fip-up;fp=src%2Fppp%2Fip-up;h=4ce95a5050d9205a280ece88c43eb03b9720fa3c;hp=ab01ad38b71f8eea2216d8e64906cfed615f91db;hb=3e4c5afaee8eb6fe2d62306d4bedcd643a9f5bf1;hpb=b89903559e6bf2d31dc38be898d6d21b15eec7c0 diff --git a/src/ppp/ip-up b/src/ppp/ip-up index ab01ad38b..4ce95a505 100644 --- a/src/ppp/ip-up +++ b/src/ppp/ip-up @@ -58,7 +58,7 @@ run_subdir ${rc_base}/init.d/networking/red.up/ #Check if gateway has answerd to ping, if not replace with ping.ipfire.org TEST=`/usr/bin/ping -c 2 $5 2>/dev/null | tail -2 | head -1 | cut -d"," -f2`; -grep -v "gateway" /etc/hosts > /tmp/hosts +grep -v -E "\" /etc/hosts > /tmp/hosts if [ "$TEST" == " 2 received" ]; then #ping the ppp-gateway