From 414f39849808ca102b2d2c654acdd6f1fa8b8352 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 27 Jun 2022 17:32:31 -0500 Subject: modules.in: always return 0, make loading more verbose --- init.d/modules.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'init.d') 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() -- cgit v1.2.3