diff --git a/sys-block/open-iscsi/files/iscsid-init.d b/sys-block/open-iscsi/files/iscsid-init.d index fefb9c5..eec4714 100644 --- a/sys-block/open-iscsi/files/iscsid-init.d +++ b/sys-block/open-iscsi/files/iscsid-init.d @@ -12,7 +12,11 @@ INITIATORNAME=/etc/iscsi/initiatorname.iscsi DAEMON=/usr/sbin/iscsid ADM=/usr/sbin/iscsiadm NAME="iSCSI initiator service" -UDEVINFO=/usr/bin/udevinfo +if [ -x "/usr/bin/udevinfo" ] ; then + UDEVINFO=/usr/bin/udevinfo +else + UDEVINFO="/sbin/udevadm info" +fi depend() { after modules @@ -98,7 +102,7 @@ start() { fi done - if [ "${#PATITIONS[*]}" == "0" ] ; then + if [ "${#PARTITIONS[*]}" == "0" ] ; then einfo "No automatic nodes or attached disks found!" ret=0 fi