summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorDavid Wood <david@wood2.org.uk>2015-10-11 17:39:37 +0100
committerDavid Wood <david@wood2.org.uk>2015-10-11 17:39:37 +0100
commitf190f1a07919957b66b800392ec5c7bb6b44d756 (patch)
treee4886c87111c6409c07046359c76c396564d8bd7 /usr/local
parent37803aa5ba08e5715f2c3497947e22e2815adacf (diff)
downloadpfsense-f190f1a07919957b66b800392ec5c7bb6b44d756.zip
pfsense-f190f1a07919957b66b800392ec5c7bb6b44d756.tar.gz
Make code dealing with the IPv4 default gateway conditional on the IPv4 link going down
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/sbin/ppp-linkdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown
index 94e72d0..428fa42 100755
--- a/usr/local/sbin/ppp-linkdown
+++ b/usr/local/sbin/ppp-linkdown
@@ -11,7 +11,7 @@ fi
/etc/rc.kill_states ${IF} ${LOCAL_IP}
-if [ -s "/tmp/${IF}_defaultgw" ]; then
+if [ "${PROTOCOL}" == "inet" && -s "/tmp/${IF}_defaultgw" ]; then
GW=`head -n 1 /tmp/${IF}_defaultgw`
[ -n "${GW}" ] \
&& /sbin/route delete default ${GW}
OpenPOWER on IntegriCloud