]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
automatically bring up interfaces that we manage. This allows ctdb to work without...
authorAndrew Tridgell <tridge@samba.org>
Mon, 4 Jun 2007 04:16:51 +0000 (14:16 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 4 Jun 2007 04:16:51 +0000 (14:16 +1000)
(This used to be ctdb commit 221850dcf9c28698eb3a1baf33cbf7f9137ac502)

ctdb/config/events

index 58af6a85862e7b4b3c4d0cc89582f14a4181f6bb..9b0126d35d2a91d4c3d5f31dd9c266a5f7ec30c5 100755 (executable)
@@ -28,6 +28,10 @@ case $cmd in
        ip=$2
        maskbits=$3
 
+       /sbin/ip link set $iface up || {
+                echo "`/bin/date` Failed to bringup interface $iface"
+                exit 1
+       }
        /sbin/ip addr add $ip/$maskbits dev $iface || {
                 echo "`/bin/date` Failed to add $ip/$maskbits on dev $iface"
                 exit 1