From aa2e5ee75952d9c657ee955eedc4444beb173c81 Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Sun, 7 Jun 2020 22:33:01 +0100 Subject: [PATCH] Smart iSCSI Mounter v0.98.5.3 - Implemented iSCSI discovery to enable first-time connections to function. Needs Testing! --- Smart-iSCSI/smart-iscsi.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Smart-iSCSI/smart-iscsi.sh b/Smart-iSCSI/smart-iscsi.sh index b4b3ddd..2e0837a 100755 --- a/Smart-iSCSI/smart-iscsi.sh +++ b/Smart-iSCSI/smart-iscsi.sh @@ -1,6 +1,6 @@ #!/bin/bash -_RELEASE_VER="0.98.5.2" +_RELEASE_VER="0.98.5.3" # Do not modify _CUSTOM_CONF_FILE=$1 @@ -113,6 +113,7 @@ mount_func (){ exit 2; fi + iscsiadm --mode discovery -t sendtargets --portal $PORTAL_IP > /dev/null 2>&1 iscsiadm --mode node --targetname $IQN --portal $PORTAL_IP --login > /dev/null 2>&1 sleep 3 mount /dev/disk/by-uuid/$DISK_UUID $MOUNT_DIR -o noauto,noperm @@ -194,4 +195,4 @@ for arg in "$@"; do esac done -exit 0; \ No newline at end of file +exit 0;