diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-11 00:36:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-11 00:36:52 +0000 |
commit | 8f687e4c0756dcceef078bc747efd486a13c348f (patch) | |
tree | 2e6102fd7573d0418e5c6fe510ba7e084ad32802 /sbin/dhclient-script | |
parent | 973dbc364f48c0bed051350fab99f222ba235108 (diff) | |
download | pfsense-8f687e4c0756dcceef078bc747efd486a13c348f.zip pfsense-8f687e4c0756dcceef078bc747efd486a13c348f.tar.gz |
Cleanup hacks. Only add default route if its not added already.
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-x | sbin/dhclient-script | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 9197e46..024d805 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -143,7 +143,10 @@ add_new_routes() { fi # last ditch effort if no route exists. - $ROUTE add default -iface $interface + DEFAULTROUTE=`netstat -rn | grep default` + if [ -z "${DEFAULTROUTE}" ]; then + $ROUTE add default -iface $interface + fi } |