From 3ec710291ad55bab1c920895ec238153bcf23b96 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 11 Sep 2005 00:10:03 +0000 Subject: Add the interface as the default gateway if all else fails --- sbin/dhclient-script | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sbin') diff --git a/sbin/dhclient-script b/sbin/dhclient-script index cbca29a..9197e46 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -141,6 +141,10 @@ add_new_routes() { echo $new_routers > /tmp/${interface}_router done fi + + # last ditch effort if no route exists. + $ROUTE add default -iface $interface + } add_new_resolv_conf() { -- cgit v1.1