git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c2cbed
)
config/10.interface: use delete_ip_from_iface also in the "init" event
author
Stefan Metzmacher
<metze@samba.org>
Fri, 12 Feb 2010 10:25:26 +0000
(11:25 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 23 Feb 2010 09:38:49 +0000
(10:38 +0100)
metze
config/events.d/10.interface
patch
|
blob
|
history
diff --git
a/config/events.d/10.interface
b/config/events.d/10.interface
index 9365106f176861ee70ebab891c69139765b1d2b5..d7abc186fb0ff40da41cd5dbfe32f787e3749cca 100755
(executable)
--- a/
config/events.d/10.interface
+++ b/
config/events.d/10.interface
@@
-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"
_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
;;
}
done
;;