From 3e4c5afaee8eb6fe2d62306d4bedcd643a9f5bf1 Mon Sep 17 00:00:00 2001 From: Marcus Scholz Date: Wed, 19 Aug 2009 12:36:18 +0200 Subject: [PATCH] Fix gateway code that manipulates /etc/hosts. Generally all hosts that have got "gateway" in their name have been removed from that file. E.g. vpngateway. Signed-off-by: Michael Tremer --- src/ppp/ip-up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2