diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-11-17 16:40:15 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-11-17 16:40:15 +0100 |
commit | b6c97e117c20a91e548966fa50411e7fe3dd8818 (patch) | |
tree | b252400b6af698ba4837e914d4f1ffc5f54e2898 /scripts | |
parent | 021fa432447bd7b447ca39738040698db39d751b (diff) |
Remove possible bashisms
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ifcfg.sh.in | 4 | ||||
-rw-r--r-- | scripts/ifdown.sh | 2 | ||||
-rwxr-xr-x | scripts/ifrename.sh.in | 2 | ||||
-rwxr-xr-x | scripts/setntpdate.sh | 4 |
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 $? |