diff options
author | Ermal <eri@pfsense.org> | 2011-04-22 19:23:37 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-04-22 19:23:37 +0000 |
commit | bd17f93d4a13e6d6a1450d439962e6be784fad4e (patch) | |
tree | 3071129295cac7f8ef8cc4a569289976670e5df0 | |
parent | bce14123ad331f1f321aeb87d9c71c8052c2071f (diff) | |
download | pfsense-bd17f93d4a13e6d6a1450d439962e6be784fad4e.zip pfsense-bd17f93d4a13e6d6a1450d439962e6be784fad4e.tar.gz |
Do not an ip of all 1s as a gateways since it cannot be pinged.
-rwxr-xr-x | sbin/dhclient-script | 6 |
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 } |