From: Harald Hoyer Date: Fri, 25 Oct 2019 12:29:17 +0000 (+0200) Subject: iscsi: remove bashisms X-Git-Tag: 050~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27f758e12c544e040520452336f31ffc02ef8ebb;p=thirdparty%2Fdracut.git iscsi: remove bashisms --- diff --git a/modules.d/95iscsi/cleanup-iscsi.sh b/modules.d/95iscsi/cleanup-iscsi.sh index 789c33f03..99c2c2502 100755 --- a/modules.d/95iscsi/cleanup-iscsi.sh +++ b/modules.d/95iscsi/cleanup-iscsi.sh @@ -1,5 +1,5 @@ #!/bin/sh -if [[ -z "${DRACUT_SYSTEMD}" ]] && ( [[ -e /sys/module/bnx2i ]] || [[ -e /sys/module/qedi ]] ) ; then +if [ -z "${DRACUT_SYSTEMD}" ] && ( [ -e /sys/module/bnx2i ] || [ -e /sys/module/qedi ] ) ; then killproc iscsiuio fi diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh index 106d0e7ba..cc2ed2cc1 100755 --- a/modules.d/95iscsi/iscsiroot.sh +++ b/modules.d/95iscsi/iscsiroot.sh @@ -37,8 +37,8 @@ iroot=${iroot#:} modprobe crc32c 2>/dev/null # start iscsiuio if needed -if [[ -z "${DRACUT_SYSTEMD}" ]] && \ - ( [[ -e /sys/module/bnx2i ]] || [[ -e /sys/module/qedi ]] ) && \ +if [ -z "${DRACUT_SYSTEMD}" ] && \ + ( [ -e /sys/module/bnx2i ] || [ -e /sys/module/qedi ] ) && \ ! [ -e /tmp/iscsiuio-started ]; then iscsiuio > /tmp/iscsiuio-started