aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-01-30 14:53:14 +0100
committerTom Gundersen <teg@jklm.no>2012-01-30 14:53:14 +0100
commitfe99dfb859174b7f0843b3a5793896811a66accb (patch)
tree20dec520292f4f85384c69d91906c7f8ed4dc99f
parentcc568fb39b8558c9308019c4cfd2215461836890 (diff)
parentb52fa3010a6f7d9ad99dcc9dfab0a9f9a5434a9b (diff)
downloadinitscripts-fe99dfb859174b7f0843b3a5793896811a66accb.tar.xz
Merge remote-tracking branch 'falconindy/working'
-rw-r--r--functions11
1 files changed, 8 insertions, 3 deletions
diff --git a/functions b/functions
index aad741a..24da795 100644
--- a/functions
+++ b/functions
@@ -171,9 +171,14 @@ stat_die() {
}
status() {
+ [[ $1 = '-v' ]] && { local v=1; shift; }
stat_busy "$1"
shift
- "$@" &>/dev/null
+ if (( v )); then
+ "$@"
+ else
+ "$@" &>/dev/null
+ fi
local ret=$?
(( ret == 0 )) && stat_done || stat_fail
return $ret
@@ -353,8 +358,8 @@ udevd_modprobe() {
stat_done
# Load modules from the MODULES array defined in rc.conf
- [[ -f /proc/modules ]] && (( ${#MODULES[*]} )) &&
- status "Loading User-specified Modules" modprobe -ab "${MODULES[@]}"
+ (( ${#MODULES[*]} )) &&
+ status -v "Loading User-specified Modules" modprobe -ab "${MODULES[@]}"
status "Waiting for UDev uevents to be processed" \
udevadm settle