aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-10-24 12:56:08 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2016-10-24 12:56:08 -0700
commit9bfa24d64ea686ff7416bfd990624a54788525a0 (patch)
tree8c7a1b4abb0d640b67184d2e936857649a4b97e0
parentnet/iproute2: IPv6 DAD delay must be non-fatal. (diff)
downloadnetifrc-9bfa24d64ea686ff7416bfd990624a54788525a0.tar.gz
netifrc-9bfa24d64ea686ff7416bfd990624a54788525a0.tar.bz2
netifrc-9bfa24d64ea686ff7416bfd990624a54788525a0.zip
bashisms: Fix bashisms for dash support.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--net/bonding.sh2
-rw-r--r--udev_helper/net.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/bonding.sh b/net/bonding.sh
index ba75239..d0ed319 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -82,7 +82,7 @@ bonding_pre_start()
n=${x##*/}
eval s=\$${n}_${IFVAR}
# skip mode and miimon
- [ "${n}" == "mode" -o "${n}" == "miimon" ] && continue
+ [ "${n}" = "mode" -o "${n}" = "miimon" ] && continue
if [ -n "${s}" ]; then
einfo "Setting ${n}: ${s}"
echo "${s}" >"${x}" || \
diff --git a/udev_helper/net.sh b/udev_helper/net.sh
index 85b304b..b15b187 100644
--- a/udev_helper/net.sh
+++ b/udev_helper/net.sh
@@ -48,6 +48,6 @@ fi
# If we're stopping then sleep for a bit in-case a daemon is monitoring
# the interface. This to try and ensure we stop after they do.
-[ "${ACTION}" == "stop" ] && sleep 2
+[ "${ACTION}" = "stop" ] && sleep 2
IN_HOTPLUG=1 "${SCRIPT}" --quiet "${ACTION}"