]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fixed a bug gateway never was changed when ppp was used
authorManiacikarus <maniacikarus@ipfire.org>
Wed, 18 Jun 2008 18:38:52 +0000 (20:38 +0200)
committerManiacikarus <maniacikarus@ipfire.org>
Wed, 18 Jun 2008 18:38:52 +0000 (20:38 +0200)
config/rootfiles/updater/filelists/core15
src/ppp/ip-up

index d170a993478d75f069c66610df8f416734be623d..0e8bddfd24e60a707813a77a6ca22ed25f895791 100644 (file)
@@ -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
index 1f24658dd68901f0c42cb6f2c30b01012c9a4498..0f32820c08c390140423e95ec49672d2ea877a75 100644 (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