Commit aa790e1c authored by Leonardo Arena's avatar Leonardo Arena

testing/open-iscsi: init script busybox compatibility fix

parent 1577216a
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/sys-block/open-iscsi/files/iscsid-2.0.871-r1.init.d,v 1.1 2009/11/12 09:29:48 robbat2 Exp $
opts="${opts} starttargets stoptargets restarttargets"
......@@ -37,7 +34,7 @@ do_modules() {
modopts="$@"
for m in ${modules}
do
if [ -n "$(modprobe -l | grep ${m})" ]
if [ -n "$(find /lib/modules/`uname -r` | grep ${m})" ]
then
ebegin "${msg} ${m}"
modprobe ${modopts} ${m}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment