diff options
Diffstat (limited to 'sys-block/open-iscsi/files/iscsidev.sh')
-rw-r--r-- | sys-block/open-iscsi/files/iscsidev.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-block/open-iscsi/files/iscsidev.sh b/sys-block/open-iscsi/files/iscsidev.sh index bcceb115ba69..d045fae570fc 100644 --- a/sys-block/open-iscsi/files/iscsidev.sh +++ b/sys-block/open-iscsi/files/iscsidev.sh @@ -39,7 +39,8 @@ status=$? # do the removal if [[ $ACTION = 'remove' ]]; then - find -L /dev/disk/by-path/ -type l -lname ${DEVNAME} -exec rm "{}" + 2>/dev/null + # nohup needed so this isn't constantly run... + nohup find -L /dev/disk/by-path/ -type l -lname ${DEVNAME} -exec rm "{}" + 2>/dev/null & exit 0 fi @@ -74,4 +75,4 @@ done # actually create the link mkdir -p /dev/disk/by-path/ -ln -s "${DEVNAME}" "/dev/disk/by-path/ip-${TARGET_IP}:${TARGET_PORT}-iscsi-${TARGET_NAME}-lun-1"
\ No newline at end of file +ln -s "${DEVNAME}" "/dev/disk/by-path/ip-${TARGET_IP}:${TARGET_PORT}-iscsi-${TARGET_NAME}-lun-1" |