summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-04-22 19:23:37 +0000
committerErmal <eri@pfsense.org>2011-04-22 19:23:37 +0000
commitbd17f93d4a13e6d6a1450d439962e6be784fad4e (patch)
tree3071129295cac7f8ef8cc4a569289976670e5df0
parentbce14123ad331f1f321aeb87d9c71c8052c2071f (diff)
downloadpfsense-bd17f93d4a13e6d6a1450d439962e6be784fad4e.zip
pfsense-bd17f93d4a13e6d6a1450d439962e6be784fad4e.tar.gz
Do not an ip of all 1s as a gateways since it cannot be pinged.
-rwxr-xr-xsbin/dhclient-script6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index e51132e..6533e48 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -80,7 +80,11 @@ add_new_address() {
$LOGGER "New Broadcast Address ($interface): $new_broadcast_address"
$LOGGER "New Routers ($interface): $new_routers"
- echo $new_routers > /tmp/${interface}_router
+
+ # This is necessary otherwise apinger will try to ping all 1s address
+ if [ "$new_routers" = "255.255.255.255" ]; then
+ echo $new_routers > /tmp/${interface}_router
+ fi
echo $new_ip_address > /var/db/${interface}_ip
}
OpenPOWER on IntegriCloud