commit:     9bfa24d64ea686ff7416bfd990624a54788525a0
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 24 19:56:08 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Oct 24 19:56:08 2016 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=9bfa24d6

bashisms: Fix bashisms for dash support.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 net/bonding.sh     | 2 +-
 udev_helper/net.sh | 2 +-
 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}"

Reply via email to