summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-09 17:23:26 +0000
committerErmal <eri@pfsense.org>2010-09-09 17:25:06 +0000
commit3d471a14d42f9a17b06eeac2708c29f959ca98d8 (patch)
treefaba0ad0b1f0c17a3107babdd2b4488b4fdd3b9c /usr/local
parent4b887ef4644f7d01a49d266409eb8a5bdf3b08d9 (diff)
downloadpfsense-3d471a14d42f9a17b06eeac2708c29f959ca98d8.zip
pfsense-3d471a14d42f9a17b06eeac2708c29f959ca98d8.tar.gz
Ticket #876. Add the ip to the respective files on ppp linkup event so the code of dynamic gateways finds them. Also reorganize/simplify/optimize the apinger config generation code. Do not use that 127.0.0.x hack anymore and avoid loops as much as possible.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/sbin/ppp-linkdown2
-rwxr-xr-xusr/local/sbin/ppp-linkup2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown
index 59b2ce0..8b09846 100755
--- a/usr/local/sbin/ppp-linkdown
+++ b/usr/local/sbin/ppp-linkdown
@@ -8,6 +8,6 @@ fi
/usr/sbin/ngctl shutdown $1:
/bin/rm -f /var/etc/nameserver_$1
# Do not remove gateway used during filter reload.
-# /bin/rm -f /tmp/$1_router
+/bin/rm -f /tmp/$1_router
/bin/rm -f /tmp/$1up
/usr/local/sbin/pfSctl -c 'service reload dns'
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup
index 67b0832..f1d7018 100755
--- a/usr/local/sbin/ppp-linkup
+++ b/usr/local/sbin/ppp-linkup
@@ -14,7 +14,7 @@ if [ $8 = "dns2" ]; then
fi
# let the configuration system know that the ip has changed.
-/usr/local/sbin/pfSctl -c "'interface reload $1'"
/bin/echo $4 > /tmp/$1_router
/usr/bin/touch /tmp/$1up
+/usr/local/sbin/pfSctl -c "'interface reload $1'"
exit 0
OpenPOWER on IntegriCloud