summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorDavid Wood <david@wood2.org.uk>2015-10-11 17:42:14 +0100
committerDavid Wood <david@wood2.org.uk>2015-10-11 17:42:14 +0100
commit0c54b7567b75798a201483ce55ca648dbe8a1d0d (patch)
tree6baebad4631a19111eefb8754d19eba2591679ca /usr
parentf190f1a07919957b66b800392ec5c7bb6b44d756 (diff)
downloadpfsense-0c54b7567b75798a201483ce55ca648dbe8a1d0d.zip
pfsense-0c54b7567b75798a201483ce55ca648dbe8a1d0d.tar.gz
Make route deletions quiet - it may well be the routes have already disappeared
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/ppp-linkdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown
index 428fa42..6fca066 100755
--- a/usr/local/sbin/ppp-linkdown
+++ b/usr/local/sbin/ppp-linkdown
@@ -14,7 +14,7 @@ fi
if [ "${PROTOCOL}" == "inet" && -s "/tmp/${IF}_defaultgw" ]; then
GW=`head -n 1 /tmp/${IF}_defaultgw`
[ -n "${GW}" ] \
- && /sbin/route delete default ${GW}
+ && /sbin/route -q delete default ${GW}
fi
if [ "${PROTOCOL}" == "inet6" ]; then
/usr/local/sbin/ppp-ipv6 ${IF} down
@@ -24,7 +24,7 @@ fi
if [ -f "/var/etc/nameserver_${IF}" ]; then
# Remove old entries
for nameserver in `cat /var/etc/nameserver_${IF}`; do
- /sbin/route delete ${nameserver} >/dev/null 2>&1
+ /sbin/route -q delete ${nameserver} >/dev/null 2>&1
done
/bin/rm -f /var/etc/nameserver_${IF}
fi
OpenPOWER on IntegriCloud