Project

General

Profile

« Previous | Next » 

Revision 06d30ce7

Added by Ermal LUÇI over 14 years ago

Handle the case on some special configs with a gateway of all 1's otherwise strange thing happens.

View differences:

sbin/dhclient-script
189 189
	if [ -f "/tmp/${interface}_defaultgw" -o $EXISTSGW -eq 0 ]; then
190 190
		$ROUTE delete default
191 191
		for router in $new_routers; do
192
			if [ "$new_ip_address" = "$router" ]; then
192
			if [ "$new_ip_address" = "$router" -o "$router" = "255.255.255.255" ]; then
193 193
				$ROUTE add default -iface $interface
194 194
				echo $ROUTE add default -iface $interface | $LOGGER
195 195
				echo $router > /tmp/${interface}_router

Also available in: Unified diff