From 18d0f2a2379ba39f2bb94f005c570870a7113f3d Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Sun, 24 May 2020 12:35:06 +0100 Subject: [PATCH] Smart iSCSI Mounter v0.98.5.1 - Removed stdout and stderr redirection from mount and un-mount operations to show warnings and errors regardless of the quiet flag state. --- Smart-iSCSI/smart-iscsi.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Smart-iSCSI/smart-iscsi.sh b/Smart-iSCSI/smart-iscsi.sh index 8fd73e2..40c510c 100755 --- a/Smart-iSCSI/smart-iscsi.sh +++ b/Smart-iSCSI/smart-iscsi.sh @@ -1,6 +1,6 @@ #!/bin/bash -_RELEASE_VER="0.98.5" +_RELEASE_VER="0.98.5.1" # Do not modify _CUSTOM_CONF_FILE=$1 @@ -122,7 +122,7 @@ mount_func (){ 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 > /dev/null 2>&1 + mount /dev/disk/by-uuid/$DISK_UUID $MOUNT_DIR -o noauto,noperm } umount_func (){ @@ -143,7 +143,7 @@ umount_func (){ exit 2; fi - umount -l $MOUNT_DIR > /dev/null 2>&1 + umount -l $MOUNT_DIR sleep 3 iscsiadm --mode node --targetname $IQN --portal $PORTAL_IP --logout > /dev/null 2>&1 }