summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-11 00:10:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-11 00:10:03 +0000
commit3ec710291ad55bab1c920895ec238153bcf23b96 (patch)
tree8efb46c761ff5e94b8196f5d653e5529f3e2fe7d /sbin
parent5b4180d3452e6283b5b91958dc91254eb7790663 (diff)
downloadpfsense-3ec710291ad55bab1c920895ec238153bcf23b96.zip
pfsense-3ec710291ad55bab1c920895ec238153bcf23b96.tar.gz
Add the interface as the default gateway if all else fails
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/dhclient-script4
1 files changed, 4 insertions, 0 deletions
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() {
OpenPOWER on IntegriCloud