summaryrefslogtreecommitdiff
path: root/init.d.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-02 10:28:27 +0000
committerRoy Marples <roy@marples.name>2008-01-02 10:28:27 +0000
commite5933843e81b213786f78bb267f84fa78f663b61 (patch)
treed5f14cd0b747ba3a5e533a015888f07198b8f5f3 /init.d.Linux
parentca55270ab0eb2d217eaa8b8ff147187079fe3bd8 (diff)
downloadopenrc-e5933843e81b213786f78bb267f84fa78f663b61.tar.gz
openrc-e5933843e81b213786f78bb267f84fa78f663b61.tar.bz2
openrc-e5933843e81b213786f78bb267f84fa78f663b61.tar.xz
_opts -> _args to match other scripts
Diffstat (limited to 'init.d.Linux')
-rwxr-xr-xinit.d.Linux/modules6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.d.Linux/modules b/init.d.Linux/modules
index 19e679b..4a5c125 100755
--- a/init.d.Linux/modules
+++ b/init.d.Linux/modules
@@ -57,7 +57,7 @@ start() {
x=${KV#*.*.}
local KV_MICRO=${x%%-*}
- local list= x= opts= cnt=0
+ local list= x= args= cnt=0
for x in "${KV}" ${KV_MAJOR}.${KV_MINOR}.${KV_MICRO} ${KV_MAJOR}.${KV_MINOR}; do
eval list=\$modules_$(_shell_var "${x}")
[ -n "${list}" ] && break
@@ -66,8 +66,8 @@ start() {
for x in ${list}; do
ebegin "Loading module ${x}"
- eval opts=\$module_$(_shell_var "${x}")_opts
- eval modprobe -q "${x}" "${opts}"
+ eval args=\$module_$(_shell_var "${x}")_args
+ eval modprobe -q "${x}" "${args}"
eend $? "Failed to load ${x}" && cnt=$((${cnt} + 1))
done
einfo "Autoloaded ${cnt} module(s)"