diff options
Diffstat (limited to 'net/bonding.sh')
-rw-r--r-- | net/bonding.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bonding.sh b/net/bonding.sh index 209d4f07..6d15f0da 100644 --- a/net/bonding.sh +++ b/net/bonding.sh @@ -100,9 +100,9 @@ bonding_pre_start() if [ -n "${primary}" ]; then echo "+${primary}" >/sys/class/net/"${IFACE}"/bonding/slaves echo "${primary}" >/sys/class/net/"${IFACE}"/bonding/primary - slaves="${slaves/${primary}/}" fi for s in ${slaves}; do + [ "${s}" = "${primary}" ] && continue echo "+${s}" >/sys/class/net/"${IFACE}"/bonding/slaves done else |