config/10.interface: use delete_ip_from_iface also in the "init" event
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Feb 2010 10:25:26 +0000 (11:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Feb 2010 09:38:49 +0000 (10:38 +0100)
metze

config/events.d/10.interface

index 9365106f176861ee70ebab891c69139765b1d2b5..d7abc186fb0ff40da41cd5dbfe32f787e3749cca 100755 (executable)
@@ -136,7 +136,7 @@ case "$1" in
                        _IFACE=`echo $_IP_HELD | sed -e "s/.*\s//"`
                        _NM=`echo $_IP_HELD | sed -e "s/.*$_IP\///" -e "s/\s.*//"`
                        echo "Removing public address $_IP/$_NM from device $_IFACE"
-                       /sbin/ip addr del $_IP/$_NM dev $_IFACE
+                       delete_ip_from_iface $_IFACE $_IP $_NM
                }
        done
        ;;