summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-04-22 00:08:53 +0200
committerTom Gundersen <teg@jklm.no>2011-04-22 00:08:53 +0200
commit1de599669a643f82ec0f0c7870335620e74b0765 (patch)
treeec886775d5867a49fb200ca6fea937b256b1056a /rc.sysinit
parentc275d4357bdaff09a44b32f79a4e6f42ef190fba (diff)
Cleanup stat_busy vs status
Minor cleanups, no functional change. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit20
1 files changed, 7 insertions, 13 deletions
diff --git a/rc.sysinit b/rc.sysinit
index b38d84a..070d7cf 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -89,9 +89,7 @@ fi
# Load modules from the MODULES array defined in rc.conf
mods=${MODULES[@]/!*/}
if [[ $load_modules != off && -f /proc/modules && $mods ]]; then
- stat_busy "Loading Modules"
- /sbin/modprobe --all $mods
- stat_done
+ status "Loading Modules" /sbin/modprobe --all $mods
fi
unset mods
@@ -291,12 +289,8 @@ stat_done
# enable monitoring of lvm2 groups, now that the filesystems are mounted rw
if [[ $USELVM =~ yes|YES && -x /sbin/lvm && -d /sys/block ]]; then
- stat_busy "Activating monitoring of LVM2 groups"
- if /sbin/vgchange --monitor y >/dev/null; then
- stat_done
- else
- stat_fail
- fi
+ status "Activating monitoring of LVM2 groups" \
+ /sbin/vgchange --monitor y >/dev/null
fi
status "Activating Swap" /sbin/swapon -a
@@ -309,9 +303,8 @@ fi
RANDOM_SEED=/var/lib/misc/random-seed
if [[ -f $RANDOM_SEED ]]; then
- stat_busy "Initializing Random Seed"
- /bin/cat $RANDOM_SEED > /dev/urandom
- stat_done
+ status "Initializing Random Seed" \
+ /bin/cat $RANDOM_SEED > /dev/urandom
fi
stat_busy "Removing Leftover Files"
@@ -334,7 +327,8 @@ fi
# Set the NIS domain name, if necessary
[[ -f /etc/conf.d/nisdomainname ]] && . /etc/conf.d/nisdomainname
if [[ $NISDOMAINNAME ]]; then
- status "Setting NIS Domain Name: $NISDOMAINNAME" /bin/nisdomainname "$NISDOMAINNAME"
+ status "Setting NIS Domain Name: $NISDOMAINNAME" \
+ /bin/nisdomainname "$NISDOMAINNAME"
fi
stat_busy "Setting Locale: ${LOCALE:=en_US}"