aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-18 14:24:18 -0400
committerMike Frysinger <vapier@gentoo.org>2011-03-18 14:24:18 -0400
commit9f5eb03e5ef30f4357d05e004f38ea6ca0d21346 (patch)
tree7d84eb69ce9ce05704005406d6d70f3bed3faed8
parentd7e48fe643bc82ae6280193dc42f5fef7265abac (diff)
net: bonding: avoid using bash string replace
X-Gentoo-Bug: 359311 X-Gentoo-Bug-URL: http://bugs.gentoo.org/359311 Reported-by: Raffaello D. Di Napoli <fastijum@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--net/bonding.sh2
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