aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions9
1 files changed, 7 insertions, 2 deletions
diff --git a/functions b/functions
index aad741a..98a3283 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
@@ -354,7 +359,7 @@ udevd_modprobe() {
# Load modules from the MODULES array defined in rc.conf
[[ -f /proc/modules ]] && (( ${#MODULES[*]} )) &&
- status "Loading User-specified Modules" modprobe -ab "${MODULES[@]}"
+ status -v "Loading User-specified Modules" modprobe -ab "${MODULES[@]}"
status "Waiting for UDev uevents to be processed" \
udevadm settle