]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/red
Corrected guardian
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / networking / red
index 7be289b00d0d63008323702219a4e9f3ce1e8a10..f56cb21843cff2e152c364afae6559db7843f684 100644 (file)
@@ -159,6 +159,9 @@ case "${1}" in
 
                                . /var/ipfire/dhcpc/dhcpcd-${DEVICE}.info
                                echo "$IPADDR"  > /var/ipfire/red/local-ipaddress
+                               grep -v "gateway" /etc/hosts > /tmp/hosts
+                               echo "$GATEWAY gateway"  >> /tmp/hosts
+                               mv /tmp/hosts /etc/hosts
                                echo "$GATEWAY" > /var/ipfire/red/remote-ipaddress
                        else
                                echo ""