summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorDavid Wood <david@wood2.org.uk>2015-10-11 17:23:04 +0100
committerDavid Wood <david@wood2.org.uk>2015-10-11 17:23:04 +0100
commit37803aa5ba08e5715f2c3497947e22e2815adacf (patch)
tree34aebd6a4f27d23f64b1e5997695b284400cd589 /usr/local
parentc3485245640f29c0eabc40aebad5ec6dfe54cf15 (diff)
downloadpfsense-37803aa5ba08e5715f2c3497947e22e2815adacf.zip
pfsense-37803aa5ba08e5715f2c3497947e22e2815adacf.tar.gz
Connect ppp-ipv6 helper script to ppp-linkdown and ppp-linkup
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/sbin/ppp-linkdown4
-rwxr-xr-xusr/local/sbin/ppp-linkup1
2 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown
index 62d07ed..94e72d0 100755
--- a/usr/local/sbin/ppp-linkdown
+++ b/usr/local/sbin/ppp-linkdown
@@ -1,6 +1,7 @@
#!/bin/sh
IF="${1}"
+PROTOCOL="${2}"
LOCAL_IP="${3}"
if [ -f /tmp/${IF}up ] && [ -f /conf/${IF}.log ]; then
@@ -15,6 +16,9 @@ if [ -s "/tmp/${IF}_defaultgw" ]; then
[ -n "${GW}" ] \
&& /sbin/route delete default ${GW}
fi
+if [ "${PROTOCOL}" == "inet6" ]; then
+ /usr/local/sbin/ppp-ipv6 ${IF} down
+fi
# delete the node just in case mpd cannot do that
/usr/sbin/ngctl shutdown ${IF}:
if [ -f "/var/etc/nameserver_${IF}" ]; then
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup
index 2d1eb33..35ed0d2 100755
--- a/usr/local/sbin/ppp-linkup
+++ b/usr/local/sbin/ppp-linkup
@@ -35,6 +35,7 @@ if [ "${2}" == "inet" ]; then
pfSctl -c "interface newip ${1}"
elif [ "${2}" == "inet6" ]; then
+ /usr/local/sbin/ppp-ipv6 ${1} up
# let the configuration system know that the ipv6 has changed.
echo ${4} |cut -d% -f1 > /tmp/${1}_routerv6
echo ${3} |cut -d% -f1 > /tmp/${1}_ipv6
OpenPOWER on IntegriCloud