From c98f860009e05b4d3f10b914ade3a5fad1df6b24 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sun, 16 Mar 2008 10:55:51 +0100 Subject: Fix various coding style issues --- init | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'init') 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 -- cgit v1.2.3-24-g4f1b