summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2008-03-16 10:55:51 +0100
committerThomas Bächler <thomas@archlinux.org>2008-03-16 10:55:51 +0100
commitc98f860009e05b4d3f10b914ade3a5fad1df6b24 (patch)
treec4f8062d5f52cd41d94bf08c38d2fc2d95c130eb /init
parent1f8eed5b46629c3e38207349b505251e3c0cde1c (diff)
downloadmkinitcpio-c98f860009e05b4d3f10b914ade3a5fad1df6b24.tar.gz
mkinitcpio-c98f860009e05b4d3f10b914ade3a5fad1df6b24.tar.xz
Fix various coding style issues
Diffstat (limited to 'init')
-rw-r--r--init22
1 files changed, 11 insertions, 11 deletions
diff --git a/init b/init
index 11b9aa7..3706391 100644
--- a/init
+++ b/init
@@ -16,10 +16,10 @@ export kinit_params=""
export root=""
echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
-for cmd in $CMDLINE; do
- case "$cmd" in
+for cmd in ${CMDLINE}; do
+ case "${cmd}" in
\#*) break ;; # ignore everything after a # in the commandline
- [0123456Ss]) export runlevel="$cmd" ;;
+ [0123456Ss]) export runlevel="${cmd}" ;;
single) export runlevel="S" ;; #some people use 'single'
#Allow "init=X" to pass-through
init=*) kinit_params="${kinit_params} ${cmd}" ;;
@@ -49,28 +49,28 @@ fi
if [ -n "${earlymodules}" ]; then
for m in $(replace "${earlymodules}" ','); do
- /sbin/modprobe -q $m > /dev/null 2>&1
+ /sbin/modprobe -q ${m} > /dev/null 2>&1
done
fi
. /config
-for m in $MODULES; do
+for m in ${MODULES}; do
TST=""
eval "TST=\$mod_${m}"
if [ "${TST}" != "disabled" ]; then
- /sbin/modprobe -q $m > /dev/null 2>&1
+ /sbin/modprobe -q ${m} > /dev/null 2>&1
fi
done
if [ -e "/hooks" ]; then
- for h in $HOOKS; do
+ for h in ${HOOKS}; do
TST=""
eval "TST=\$hook_${h}"
if [ "${TST}" != "disabled" ]; then
- run_hook () { msg "$h: no run function defined"; }
- if [ -e "/hooks/$h" ]; then
- . /hooks/$h
+ run_hook () { msg "${h}: no run function defined"; }
+ if [ -e "/hooks/${h}" ]; then
+ . /hooks/${h}
msg ":: Running Hook [${h}]"
run_hook
fi
@@ -129,7 +129,7 @@ fi
#Special handling if udev is running
udevpid=$(/bin/minips -C udevd -o pid=)
if [ -n "${udevpid}" ]; then
- /bin/kill -9 $udevpid
+ /bin/kill -9 ${udevpid}
/bin/sleep 0.01
fi