5 for var
in $
(env |
grep '^IF_BOND_'); do
8 if [ "$opt" == "IF_BOND_PORTS" ]; then
19 opt
="$(tr '[A-Z]' '[a-z]' <<< ${opt#IF_BOND_})"
21 [ -n "$val" ] && BONDOPTS
+=" $val"
24 [ -n "$INTERFACES" ] ||
exit 0
26 ip link add
$IFACE type bond
${BONDOPTS} ||
exit 1
27 for IF
in $INTERFACES; do
28 if ! grep -q $IF /proc
/net
/dev
; then
29 echo "Error: interface '$IF' does not exist!"
33 ip link
set $IF master
$IFACE