diff options
author | Ermal <eri@pfsense.org> | 2010-09-15 19:24:26 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-15 19:24:26 +0000 |
commit | 0c452870cdc2816749f4b1c12370a3d6a64158d5 (patch) | |
tree | 9df6331b1fced52992109f19aa226a5aa4d499cf /usr | |
parent | d8bf779be2910026e44ca9f493c02df960b94408 (diff) | |
download | pfsense-0c452870cdc2816749f4b1c12370a3d6a64158d5.zip pfsense-0c452870cdc2816749f4b1c12370a3d6a64158d5.tar.gz |
Reload dns and interface properly on dynamic types.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/sbin/ovpn-linkup | 2 | ||||
-rwxr-xr-x | usr/local/sbin/ppp-linkdown | 1 | ||||
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup index 354623e..cc09003 100755 --- a/usr/local/sbin/ovpn-linkup +++ b/usr/local/sbin/ovpn-linkup @@ -3,7 +3,7 @@ # write nameservers to file needs dns fidnings?! # let the configuration system know that the ip has changed. -#/usr/local/sbin/pfSctl -c "'interface reload $interface'" +#/usr/local/sbin/pfSctl -c "interface reload $interface" /bin/echo $4 > /tmp/$1_router /usr/bin/touch /tmp/$1up # reload filter diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown index 8b09846..55be9d6 100755 --- a/usr/local/sbin/ppp-linkdown +++ b/usr/local/sbin/ppp-linkdown @@ -10,4 +10,5 @@ fi # Do not remove gateway used during filter reload. /bin/rm -f /tmp/$1_router /bin/rm -f /tmp/$1up +/bin/rm -f /tmp/$1_ip /usr/local/sbin/pfSctl -c 'service reload dns' diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index f1d7018..e0b44af 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -15,6 +15,8 @@ fi # let the configuration system know that the ip has changed. /bin/echo $4 > /tmp/$1_router +/bin/echo $3 > /tmp/$1_ip /usr/bin/touch /tmp/$1up -/usr/local/sbin/pfSctl -c "'interface reload $1'" +/usr/local/sbin/pfSctl -c 'service reload dns' +/usr/local/sbin/pfSctl -c "interface reload $1" exit 0 |