diff options
author | David Wood <david@wood2.org.uk> | 2015-10-11 17:39:37 +0100 |
---|---|---|
committer | David Wood <david@wood2.org.uk> | 2015-10-11 18:32:18 +0100 |
commit | 6df89ece12206d3a1a917dc83df593c29c1b1bf9 (patch) | |
tree | 1147b3d24f621cb5fb40da93f5efb3338558f344 /src/usr/local/sbin | |
parent | 6c452777413ba48d80fceef36f537f904fb5aa51 (diff) | |
download | pfsense-6df89ece12206d3a1a917dc83df593c29c1b1bf9.zip pfsense-6df89ece12206d3a1a917dc83df593c29c1b1bf9.tar.gz |
Make code dealing with the IPv4 default gateway conditional on the IPv4 link going down
Diffstat (limited to 'src/usr/local/sbin')
-rwxr-xr-x | src/usr/local/sbin/ppp-linkdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/sbin/ppp-linkdown b/src/usr/local/sbin/ppp-linkdown index 94e72d0..428fa42 100755 --- a/src/usr/local/sbin/ppp-linkdown +++ b/src/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} |