diff options
author | Ermal <eri@pfsense.org> | 2010-09-09 17:23:26 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-09 17:25:06 +0000 |
commit | 3d471a14d42f9a17b06eeac2708c29f959ca98d8 (patch) | |
tree | faba0ad0b1f0c17a3107babdd2b4488b4fdd3b9c /usr | |
parent | 4b887ef4644f7d01a49d266409eb8a5bdf3b08d9 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/sbin/ppp-linkdown | 2 | ||||
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 2 |
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 |