1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-06-16 00:48:44 +02:00

Remove possible bashisms

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-11-17 16:40:15 +01:00
parent 021fa43244
commit b6c97e117c
4 changed files with 6 additions and 6 deletions

View file

@ -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`

View file

@ -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`

View file

@ -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`

View file

@ -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 $?