add some helper stubs for split ifupdown1-addon setups

This commit is contained in:
Ariadne Conill 2020-08-04 13:18:36 -06:00
parent d9fd545ad1
commit 5bf6c84464
3 changed files with 16 additions and 0 deletions

5
executor-scripts/stub/bond Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
[ -z "$IF_BOND_MEMBERS" ] && IF_BOND_MEMBERS="$IF_BOND_SLAVES"
case "$PHASE" in
depend) echo "$IF_BOND_MEMBERS" ;;
esac

4
executor-scripts/stub/bridge Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
case "$PHASE" in
depend) echo "$IF_BRIDGE_PORTS" ;;
esac

7
executor-scripts/stub/vlan Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
case "$PHASE" in
depend)
RAW_DEVICE="${IFACE%.*}"
echo "$RAW_DEVICE"
;;
esac