diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-03-19 09:53:14 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-03-19 15:36:53 -0300 |
commit | 6d5460e650aae29111de0d16ca82d5ffc2ad59af (patch) | |
tree | 98d3d10cde7276be95c26e27a7b56faaa7328fd6 /usr/local/sbin | |
parent | 94b49d82f6b22ee5e2114515b490e4ee293d2230 (diff) | |
download | pfsense-6d5460e650aae29111de0d16ca82d5ffc2ad59af.zip pfsense-6d5460e650aae29111de0d16ca82d5ffc2ad59af.tar.gz |
Fix default route deletion
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-x | usr/local/sbin/ppp-linkdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/sbin/ppp-linkdown b/usr/local/sbin/ppp-linkdown index cdc6829..17998da 100755 --- a/usr/local/sbin/ppp-linkdown +++ b/usr/local/sbin/ppp-linkdown @@ -19,7 +19,7 @@ fi /sbin/pfctl -i $1 -Fs if [ -f "/tmp/${1}_defaultgw" ]; then - route delete default ${OLD_ROUTER} + route delete default `head -n 1 /tmp/${1}_defaultgw`; fi # delete the node just in case mpd cannot do that /usr/sbin/ngctl shutdown $1: |