]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi: remove bashisms
authorHarald Hoyer <harald@redhat.com>
Fri, 25 Oct 2019 12:29:17 +0000 (14:29 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 25 Oct 2019 12:29:17 +0000 (14:29 +0200)
modules.d/95iscsi/cleanup-iscsi.sh
modules.d/95iscsi/iscsiroot.sh

index 789c33f03ea40555dd01a83d2db4bae247de4e56..99c2c25024795daffea95d49f6ed6b4b0610f2f6 100755 (executable)
@@ -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
index 106d0e7ba4240a7def79a52737d5700caa7c4c04..cc2ed2cc1f4860c8b20f99a1228cfc0d8bdafa2f 100755 (executable)
@@ -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