summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-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