summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerin Millar <kfm@plushkava.net>2023-01-17 09:11:22 +0000
committerSam James <sam@gentoo.org>2023-01-17 15:05:51 +0000
commite5a46f30deedabef5c18a587db2984a314f61071 (patch)
treeca506cd18c2f9bb5eb268040489db4dd1447df08
parentnet/l2tp.sh: Really favour IFACE over IFVAR in an informational message (diff)
downloadnetifrc-e5a46f30deedabef5c18a587db2984a314f61071.tar.gz
netifrc-e5a46f30deedabef5c18a587db2984a314f61071.tar.bz2
netifrc-e5a46f30deedabef5c18a587db2984a314f61071.zip
net/bonding.sh: Eliminate the bashism that is pattern substitution
Signed-off-by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@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 1757a89..6db90fa 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -92,7 +92,7 @@ bonding_pre_start()
if [ -n "${s}" ]; then
for i in $s; do
einfo "Adding ${n}: ${i}"
- _netns echo "+${i/+/}" \>"${x}" || \
+ _netns echo "+${i#+}" \>"${x}" || \
eerror "Failed to add $i (${n}_${IFVAR})"
done
fi