set broadcast addresses in the takeip event.
authorMichael Adam <obnox@samba.org>
Thu, 27 Aug 2009 20:09:42 +0000 (22:09 +0200)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 27 Aug 2009 20:50:53 +0000 (06:50 +1000)
Michael

config/events.d/10.interface

index 298f3e85c853c3dafe3915e986ede9dbfd58fc91..1c8d32dbf3b2c2c5be69a5cefda5be114585584f 100755 (executable)
@@ -57,7 +57,7 @@ case $cmd in
                 echo "Failed to bringup interface $iface"
                 exit 1
        }
-       /sbin/ip addr add $ip/$maskbits dev $iface || {
+       /sbin/ip addr add $ip/$maskbits brd + dev $iface || {
                 echo "Failed to add $ip/$maskbits on dev $iface"
        }
        # cope with the script being killed while we have the interface blocked