# Attempt to load the module, making
# sure to pass any arguments provided.
- modprobe ${module} ${args} 2>&1 > /dev/null
+ modprobe ${module} ${args} &>/dev/null
# Print the module name if successful,
# otherwise take note.
if [ ${?} -eq 0 ]; then
boot_mesg -n " ${module}" ${NORMAL}
- else
- failedmod="${failedmod} ${module}"
fi
done
# modules on the correct line.
echo_ok
- # Print a failure message with a list of any
- # modules that may have failed to load.
- if [ "${failedmod}" ]; then
- boot_mesg "Failed to load modules:${failedmod}" ${FAILURE}
- echo_failure
- fi
-
exec 0>&9 9>&-
fi