diff options
Diffstat (limited to 'main/open-iscsi/iscsid.initd')
-rw-r--r-- | main/open-iscsi/iscsid.initd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/open-iscsi/iscsid.initd b/main/open-iscsi/iscsid.initd index 8ac8e1d9b5..f7d0a26289 100644 --- a/main/open-iscsi/iscsid.initd +++ b/main/open-iscsi/iscsid.initd @@ -100,6 +100,10 @@ starttargets() { ebegin "Setting up iSCSI targets" /usr/bin/iscsiadm -m node --loginall=automatic ret=$? + #Don't report error when no targets are configured + if [ "$ret" -eq "21" ]; then + ret="0" + fi eend $ret return $ret } |