aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/ifcfg.sh.in4
-rw-r--r--scripts/ifdown.sh2
-rwxr-xr-xscripts/ifrename.sh.in2
-rwxr-xr-xscripts/setntpdate.sh4
4 files changed, 6 insertions, 6 deletions
diff --git a/scripts/ifcfg.sh.in b/scripts/ifcfg.sh.in
index f8396c6..e203826 100755
--- a/scripts/ifcfg.sh.in
+++ b/scripts/ifcfg.sh.in
@@ -5,7 +5,7 @@ CFGPATH="@ETCPATH@/netcfg"
# configure interfaces
for IFPATH in /sys/class/net/*; do
- [ "$IFPATH" == "/sys/class/net/lo" ] && continue
+ [ "$IFPATH" = "/sys/class/net/lo" ] && continue
IF=`basename $IFPATH`
CFGFILE="$CFGPATH/$IF"
@@ -63,7 +63,7 @@ fi
# activate interfaces
for IFPATH in /sys/class/net/*; do
- [ "$IFPATH" == "/sys/class/net/lo" ] && continue
+ [ "$IFPATH" = "/sys/class/net/lo" ] && continue
IF=`basename $IFPATH`
diff --git a/scripts/ifdown.sh b/scripts/ifdown.sh
index e6f4500..02156cb 100644
--- a/scripts/ifdown.sh
+++ b/scripts/ifdown.sh
@@ -1,6 +1,6 @@
#!/bin/sh
for IFPATH in /sys/class/net/*; do
- [ "$IFPATH" == "/sys/class/net/lo" ] && continue
+ [ "$IFPATH" = "/sys/class/net/lo" ] && continue
IF=`basename $IFPATH`
diff --git a/scripts/ifrename.sh.in b/scripts/ifrename.sh.in
index 0820c94..db770e3 100755
--- a/scripts/ifrename.sh.in
+++ b/scripts/ifrename.sh.in
@@ -7,7 +7,7 @@ TMPPATH="/tmp/ifrename"
mkdir -p "$TMPPATH"
for IFPATH in /sys/class/net/*; do
- [ "$IFPATH" == "/sys/class/net/lo" ] && continue
+ [ "$IFPATH" = "/sys/class/net/lo" ] && continue
IF=`basename $IFPATH`
MAC=`cat $IFPATH/address`
diff --git a/scripts/setntpdate.sh b/scripts/setntpdate.sh
index bf0a753..2b70a97 100755
--- a/scripts/setntpdate.sh
+++ b/scripts/setntpdate.sh
@@ -15,9 +15,9 @@ resolve() {
if [ -x "$(command -v drill)" ]; then
if [ -z "$server" ]; then
- drill "$domain" | grep "^${domain}." | cut -d$'\t' -f5
+ drill "$domain" | grep "^$domain." | cut -d$'\t' -f5
else
- drill "@$server" "$domain" | grep "^${domain}." |\
+ drill "@$server" "$domain" | grep "^$domain." |\
cut -d$'\t' -f5
fi
return $?