summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient-script
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-07 21:42:00 +0000
committerErmal <eri@pfsense.org>2011-03-07 21:42:39 +0000
commit06d30ce7db3a859687efdadd0263f0dfab0b32a3 (patch)
tree0e6668861a1ec8c02cb36b9072969fe3fcd4f639 /sbin/dhclient-script
parent214bd062189d3b1ffc16bfea645f3c4f155f4ae7 (diff)
downloadpfsense-06d30ce7db3a859687efdadd0263f0dfab0b32a3.zip
pfsense-06d30ce7db3a859687efdadd0263f0dfab0b32a3.tar.gz
Handle the case on some special configs with a gateway of all 1's otherwise strange thing happens.
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-xsbin/dhclient-script2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud