bridge executor: Add depend phase
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
d9e78e14fb
commit
e02e495257
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ esac
|
||||||
[ -z "$PORTS" ] && ! env | grep -q "^IF_BRIDGE" && exit
|
[ -z "$PORTS" ] && ! env | grep -q "^IF_BRIDGE" && exit
|
||||||
|
|
||||||
case "$PHASE" in
|
case "$PHASE" in
|
||||||
|
depend)
|
||||||
|
echo "$PORTS"
|
||||||
|
;;
|
||||||
create)
|
create)
|
||||||
if [ ! -d "/sys/class/net/${IFACE}" ]; then
|
if [ ! -d "/sys/class/net/${IFACE}" ]; then
|
||||||
brctl addbr "${IFACE}"
|
brctl addbr "${IFACE}"
|
||||||
|
|
Loading…
Reference in a new issue