diff options
Diffstat (limited to 'unmaintained/usbip-utils/usbip.initd')
-rw-r--r-- | unmaintained/usbip-utils/usbip.initd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unmaintained/usbip-utils/usbip.initd b/unmaintained/usbip-utils/usbip.initd index 58e2358c31c..f0e908c721e 100644 --- a/unmaintained/usbip-utils/usbip.initd +++ b/unmaintained/usbip-utils/usbip.initd @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run description="Load USBIP kernel modules and run daemon" @@ -18,12 +18,12 @@ LoadKernelModule () result= if [ -z "$(/sbin/lsmod | grep "^$(basename $module)")" ] then - local filename=$(/sbin/modprobe -l $module) + local filename=$(find lib/modules/`uname -r`/kernel -type f -name $module.ko -printf '%f\n') if [ -n "$filename" ] then - if ! /sbin/modprobe $filename + if ! /sbin/modprobe $module then - eerror "Cannot load kernel module '$filename'." + eerror "Cannot load kernel module '$module'." result=failed fi else |