aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi
diff options
context:
space:
mode:
authorTianon Gravi <admwiggin@gmail.com>2019-01-10 14:35:13 -0800
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-11 06:28:21 +0000
commit8a009e70ae2d79340e9507a8be22befbbc035bdc (patch)
treeb3be01d60ce6e77c90a68bd69c9ba0110ab59906 /main/open-iscsi
parent82bbdbee403b156c7dc53a487868f53df0991e93 (diff)
downloadaports-8a009e70ae2d79340e9507a8be22befbbc035bdc.tar.bz2
aports-8a009e70ae2d79340e9507a8be22befbbc035bdc.tar.xz
main/open-iscsid: use "modprobe" to detect available modules
Diffstat (limited to 'main/open-iscsi')
-rw-r--r--main/open-iscsi/iscsid.initd18
1 files changed, 6 insertions, 12 deletions
diff --git a/main/open-iscsi/iscsid.initd b/main/open-iscsi/iscsid.initd
index a6ce71b2ef..2affb80840 100644
--- a/main/open-iscsi/iscsid.initd
+++ b/main/open-iscsi/iscsid.initd
@@ -34,18 +34,12 @@ do_modules() {
modopts="$@"
for m in ${modules}
do
- if [ -n "$(find /lib/modules/`uname -r` | grep ${m})" ]
- then
- ebegin "${msg} ${m}"
- modprobe ${modopts} ${m}
- ret=$?
- eend ${ret}
- if [ ${ret} -ne 0 ]; then
- return ${ret}
- fi
- else
- ebegin "${msg} ${m}: not found"
- return 1
+ ebegin "${msg} ${m}"
+ modprobe ${modopts} ${m}
+ ret=$?
+ eend ${ret}
+ if [ ${ret} -ne 0 ]; then
+ return ${ret}
fi
done
return 0