aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/iscsid.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-06-04 11:34:38 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-06-04 11:35:09 +0000
commit3fd9b5d2c14b7134f73218248596790fa2c287b2 (patch)
tree9faa6b34861059239eaae3d1a1aa18b5341b9afe /main/open-iscsi/iscsid.initd
parentf6e99451d47fbe7cdb852f48dd11006808db52ae (diff)
downloadaports-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.initd4
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
}