mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
Eventscripts: 10.interfaces - make startup event actually mark interfaces up!
The startup event intends to mark interfaces up. However, it doesn't actually do that because $INTERFACES is empty. This uses the function get_all_interfaces() to list the interfaces... and then mark them up. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fc62bf0975c6059ee467285565d0dc3b4daaf238)
This commit is contained in:
parent
5ab955a73d
commit
c9d168bbe4
@ -145,10 +145,9 @@ case "$1" in
|
||||
# and we start the services to become healthy
|
||||
startup)
|
||||
# Assume all links are good initially
|
||||
INTERFACES=`for IFACE in $INTERFACES ; do echo $IFACE ; done | sort | uniq`
|
||||
|
||||
for IFACE in $INTERFACES ; do
|
||||
ctdb setifacelink $IFACE up >/dev/null 2>/dev/null
|
||||
get_all_interfaces
|
||||
for iface in $all_interfaces ; do
|
||||
ctdb setifacelink $iface up >/dev/null 2>/dev/null
|
||||
done
|
||||
|
||||
monitor_interfaces
|
||||
|
Loading…
x
Reference in New Issue
Block a user