summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/ovpn-linkup2
-rwxr-xr-xusr/local/sbin/ppp-linkdown1
-rwxr-xr-xusr/local/sbin/ppp-linkup4
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
OpenPOWER on IntegriCloud