aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2022-06-27 17:32:31 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2022-06-27 17:32:42 -0500
commit414f39849808ca102b2d2c654acdd6f1fa8b8352 (patch)
treeaf90de9f26dfa0f710c1cda2856fb2a6ed92010d /init.d
parent107b23819d6d6fa9ed05502599b2679606f2712f (diff)
modules.in: always return 0, make loading more verbose
Diffstat (limited to 'init.d')
-rw-r--r--init.d/modules.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.d/modules.in b/init.d/modules.in
index d6899f08..9def2ce8 100644
--- a/init.d/modules.in
+++ b/init.d/modules.in
@@ -56,10 +56,10 @@ load_modules()
ebegin "Loading module $x"
case "$RC_UNAME" in
FreeBSD) kldload "$x"; rc=$? ;;
- Linux) modprobe --first-time -q --use-blacklist "$x"; rc=$? ;;
+ Linux) modprobe --first-time --use-blacklist --verbose "$x"; rc=$? ;;
*) ;;
esac
- eend $rc "Failed to load $x"
+ eend
done
return 0
}
@@ -80,9 +80,10 @@ FreeBSD_modules()
for x in $modules; do
ebegin "Loading module $x"
kldload "$x"
- eend $? "Failed to load $x" && : $(( cnt += 1 ))
+ eend && : $(( cnt += 1 ))
done
einfo "Autoloaded $cnt module(s)"
+ return 0
}
Linux_modules()
@@ -122,6 +123,7 @@ Linux_modules()
eval modprobe --first-time --use-blacklist --verbose "$x" "$args"
done
[ -n "$list" ] && eend
+ return 0
}
start()