diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-03 05:12:52 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-03 05:12:52 +0000 |
commit | 6bc810fae0a8c7c5fc6209564e9908f26f9db2d9 (patch) | |
tree | 2ce2d6ed8130aa62d95e98ad62b979b357e17e3a /sbin/dhclient/dhclient-script | |
parent | be705313c4352040e3a02cfc383f1bf08dc25c0e (diff) |
Use the new powerful route flush to clean up the mess. With this multiple
dhclient can more or less peacefully coexist. OK beck@ krw@
Diffstat (limited to 'sbin/dhclient/dhclient-script')
-rw-r--r-- | sbin/dhclient/dhclient-script | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index a23980f1065..dbaa5fa93e9 100644 --- a/sbin/dhclient/dhclient-script +++ b/sbin/dhclient/dhclient-script @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: dhclient-script,v 1.14 2009/01/24 15:48:47 sobrado Exp $ +# $OpenBSD: dhclient-script,v 1.15 2009/06/03 05:12:51 claudio Exp $ # # Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org> # @@ -58,7 +58,7 @@ add_new_alias() { delete_old_routes() { # Delete existing default route. We only allow one, so no need to # process $old_routers list. - route delete default >/dev/null 2>&1 + route -n flush -inet -iface $interface >/dev/null 2>&1 if [ -n "$old_static_routes" ]; then set $old_static_routes @@ -72,7 +72,7 @@ delete_old_routes() { } add_new_routes() { - route delete default >/dev/null 2>&1 + route -n flush -inet -iface $interface >/dev/null 2>&1 for router in $new_routers; do if [ "$new_ip_address" = "$router" ]; then route add default -iface $router >/dev/null 2>&1 |