|
|
@ -181,6 +181,29 @@ modules_scan() {
|
|
|
|
[ -n "${MODS}" ] && [ -z "${QUIET}" ] && echo
|
|
|
|
[ -n "${MODS}" ] && [ -z "${QUIET}" ] && echo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modules_init() {
|
|
|
|
|
|
|
|
if [ -z "${DO_modules}" ]; then
|
|
|
|
|
|
|
|
good_msg 'Skipping module load; disabled via commandline'
|
|
|
|
|
|
|
|
elif [ -d "/lib/modules/${KV}" ]; then
|
|
|
|
|
|
|
|
good_msg 'Loading modules'
|
|
|
|
|
|
|
|
# Load appropriate kernel modules
|
|
|
|
|
|
|
|
if [ "${NODETECT}" != '1' ]; then
|
|
|
|
|
|
|
|
for modules in ${MY_HWOPTS}
|
|
|
|
|
|
|
|
do
|
|
|
|
|
|
|
|
modules_scan ${modules}
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Always eval doload=...
|
|
|
|
|
|
|
|
modules_load ${MDOLIST}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
good_msg 'Skipping module load; no modules in the ramdisk!'
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Give udev time to execute all the rules. This may be beneficial
|
|
|
|
|
|
|
|
# for usb-storage devices.
|
|
|
|
|
|
|
|
is_udev && udevadm settle
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
uppercase() {
|
|
|
|
uppercase() {
|
|
|
|
# needs tr on busybox
|
|
|
|
# needs tr on busybox
|
|
|
|
echo $1 | tr 'a-z' 'A-Z'
|
|
|
|
echo $1 | tr 'a-z' 'A-Z'
|
|
|
|