summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-linkdown
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/sbin/ppp-linkdown
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/sbin/ppp-linkdown')
-rwxr-xr-xusr/local/sbin/ppp-linkdown4
1 files changed, 4 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
OpenPOWER on IntegriCloud