X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F9990-mount-iscsi.sh;h=fd29d915ec087f9efce5c0c3e1f94a303f1a729a;hb=2648cbc4fbb19cc4b20bca4b4f3d38d515f130a1;hp=6ce9851049ed046c878aa6826e8dd1f7f5fc361a;hpb=18d2f858d485f89f667d012efc76386f82ffda59;p=live-boot-grml.git diff --git a/scripts/boot/9990-mount-iscsi.sh b/scripts/boot/9990-mount-iscsi.sh index 6ce9851..fd29d91 100755 --- a/scripts/boot/9990-mount-iscsi.sh +++ b/scripts/boot/9990-mount-iscsi.sh @@ -7,8 +7,7 @@ do_iscsi() do_netsetup #modprobe ib_iser modprobe iscsi_tcp - local debugopt - debugopt="" + local debugopt="" [ "${DEBUG}" = "true" ] && debugopt="-d 8" #FIXME this name is supposed to be unique - some date + ifconfig hash? ISCSI_INITIATORNAME="iqn.1993-08.org.debian.live:01:$(echo "${HWADDR}" | sed -e s/://g)" @@ -22,14 +21,12 @@ do_iscsi() then panic "Failed to log into iscsi target" fi - local host - host="$(ls -d /sys/class/scsi_host/host*/device/iscsi_host:host* \ - /sys/class/scsi_host/host*/device/iscsi_host/host* | sed -e 's:/device.*::' -e 's:.*host::')" + local host="$(ls -d /sys/class/scsi_host/host*/device/iscsi_host:host* \ + /sys/class/scsi_host/host*/device/iscsi_host/host* | sed -e 's:/device.*::' -e 's:.*host::')" if [ -n "${host}" ] then - local devices i - devices="" - i=0 + local devices="" + local i=0 while [ -z "${devices}" -a $i -lt 60 ] do sleep 1