From 06d30ce7db3a859687efdadd0263f0dfab0b32a3 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 7 Mar 2011 21:42:00 +0000 Subject: Handle the case on some special configs with a gateway of all 1's otherwise strange thing happens. --- sbin/dhclient-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/dhclient-script b/sbin/dhclient-script index aaa8144..e7fee7a 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -189,7 +189,7 @@ add_new_routes() { if [ -f "/tmp/${interface}_defaultgw" -o $EXISTSGW -eq 0 ]; then $ROUTE delete default for router in $new_routers; do - if [ "$new_ip_address" = "$router" ]; then + if [ "$new_ip_address" = "$router" -o "$router" = "255.255.255.255" ]; then $ROUTE add default -iface $interface echo $ROUTE add default -iface $interface | $LOGGER echo $router > /tmp/${interface}_router -- cgit v1.1