From 5fbe004ee55f667ce8c0a7d49edaae6cba826144 Mon Sep 17 00:00:00 2001 From: Maniacikarus Date: Wed, 18 Jun 2008 20:38:52 +0200 Subject: [PATCH] Fixed a bug gateway never was changed when ppp was used --- config/rootfiles/updater/filelists/core15 | 1 + src/ppp/ip-up | 3 +++ 2 files changed, 4 insertions(+) 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 -- 2.39.2