diff options
author | Tianon Gravi <admwiggin@gmail.com> | 2019-01-10 14:35:13 -0800 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-01-11 06:28:21 +0000 |
commit | 8a009e70ae2d79340e9507a8be22befbbc035bdc (patch) | |
tree | b3be01d60ce6e77c90a68bd69c9ba0110ab59906 | |
parent | 82bbdbee403b156c7dc53a487868f53df0991e93 (diff) | |
download | aports-8a009e70ae2d79340e9507a8be22befbbc035bdc.tar.bz2 aports-8a009e70ae2d79340e9507a8be22befbbc035bdc.tar.xz |
main/open-iscsid: use "modprobe" to detect available modules
-rw-r--r-- | main/open-iscsi/iscsid.initd | 18 |
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 |