From b2f872eb6115d8c1bd0092ff0384197f1fb21150 Mon Sep 17 00:00:00 2001 From: arne_f Date: Sun, 3 Feb 2008 12:58:21 +0000 Subject: [PATCH] add hosts gateway entry for red static git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1182 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- src/initscripts/init.d/networking/red | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/initscripts/init.d/networking/red b/src/initscripts/init.d/networking/red index f56cb21843..52e5d095b0 100644 --- a/src/initscripts/init.d/networking/red +++ b/src/initscripts/init.d/networking/red @@ -99,6 +99,9 @@ case "${1}" in echo -n "${DEVICE}" > /var/ipfire/red/iface echo -n "${ADDRESS}" > /var/ipfire/red/local-ipaddress echo -n "${GATEWAY}" > /var/ipfire/red/remote-ipaddress + grep -v "gateway" /etc/hosts > /tmp/hosts + echo "$GATEWAY gateway" >> /tmp/hosts + mv /tmp/hosts /etc/hosts echo -n "${DNS1}" > /var/ipfire/red/dns1 echo -n "${DNS2}" > /var/ipfire/red/dns2 touch /var/ipfire/red/active -- 2.39.5