From: Maniacikarus Date: Wed, 18 Jun 2008 18:38:52 +0000 (+0200) Subject: Fixed a bug gateway never was changed when ppp was used X-Git-Tag: v2.3-beta1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fbe004ee55f667ce8c0a7d49edaae6cba826144;p=ipfire-2.x.git Fixed a bug gateway never was changed when ppp was used --- diff --git a/config/rootfiles/updater/filelists/core15 b/config/rootfiles/updater/filelists/core15 index d170a99347..0e8bddfd24 100644 --- a/config/rootfiles/updater/filelists/core15 +++ b/config/rootfiles/updater/filelists/core15 @@ -1,5 +1,6 @@ opt/pakfire/db/core/mine etc/init.d/mISDN +etc/ppp/ip-up etc/modprobe.d/blacklist usr/bin/bc usr/bin/dc diff --git a/src/ppp/ip-up b/src/ppp/ip-up index 1f24658dd6..0f32820c08 100644 --- a/src/ppp/ip-up +++ b/src/ppp/ip-up @@ -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