aboutsummaryrefslogtreecommitdiff
path: root/init.d.Linux/modules
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.Linux/modules')
-rwxr-xr-xinit.d.Linux/modules13
1 files changed, 8 insertions, 5 deletions
diff --git a/init.d.Linux/modules b/init.d.Linux/modules
index a4889858..ef671475 100755
--- a/init.d.Linux/modules
+++ b/init.d.Linux/modules
@@ -4,12 +4,14 @@
description="Loads a user defined list of kernel modules."
-depend() {
+depend()
+{
need checkroot
use isapnp
}
-start() {
+start()
+{
# Should not fail if kernel do not have module
# support compiled in ...
[ ! -f /proc/modules -o "${RC_SYS}" = "VPS" ] && return 0
@@ -22,7 +24,10 @@ start() {
local KV_MICRO=${x%%-*}
local list= x= args= cnt=0
- for x in "${KV}" ${KV_MAJOR}.${KV_MINOR}.${KV_MICRO} ${KV_MAJOR}.${KV_MINOR}; do
+ for x in "${KV}" \
+ ${KV_MAJOR}.${KV_MINOR}.${KV_MICRO} \
+ ${KV_MAJOR}.${KV_MINOR} \
+ ; do
eval list=\$modules_$(shell_var "${x}")
[ -n "${list}" ] && break
done
@@ -43,5 +48,3 @@ start() {
# Above test clobbers the return
return 0
}
-
-# vim: set ts=4 :