diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-06-04 11:34:38 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-06-04 11:35:09 +0000 |
commit | 3fd9b5d2c14b7134f73218248596790fa2c287b2 (patch) | |
tree | 9faa6b34861059239eaae3d1a1aa18b5341b9afe /main/open-iscsi/iscsid.initd | |
parent | f6e99451d47fbe7cdb852f48dd11006808db52ae (diff) | |
download | aports-3fd9b5d2c14b7134f73218248596790fa2c287b2.tar.bz2 aports-3fd9b5d2c14b7134f73218248596790fa2c287b2.tar.xz |
main/open-iscsi: don't report error when no targets are configured. Fixes #1526
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 } |