Fixed a bug gateway never was changed when ppp was used

This commit is contained in:
Maniacikarus
2008-06-18 20:38:52 +02:00
parent 159a9efde5
commit 5fbe004ee5
2 changed files with 4 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ fi
echo -n "$1" > /var/ipfire/red/iface
echo -n "$4" > /var/ipfire/red/local-ipaddress
echo -n "$5" > /var/ipfire/red/remote-ipaddress
grep -v "gateway" /etc/hosts > /tmp/hosts
echo "$5 gateway" >> /tmp/hosts
mv /tmp/hosts /etc/hosts
touch /var/ipfire/red/active