esac
}
+modules_load() {
+ for module in $*
+ do
+ echo ${module} >> /etc/modules/extra_load
+ done
+
+ modules_scan extra_load
+}
+
modules_scan() {
local MODS
[ -d /etc/modules/${1} ] || touch /etc/modules/${1}
doevms2)
USE_EVMS2_NORMAL=1
;;
- # Start Debug Option
+ # Debug Options
debug)
DEBUG='yes'
;;
- # Scandelay options
+ # Scan delay options
scandelay\=*)
SDELAY=`parse_opt "${x}"`
;;
;;
# Module no-loads
+ doload\=*)
+ MDOLIST=`parse_opt "${x}"`
+ MDOLIST="`echo ${MDOLIST} | sed -e \"s/,/ /g\"`"
+ ;;
+ nodetect)
+ NODETECT=1
+ ;;
noload\=*)
MLIST=`parse_opt "${x}"`
- MLIST="`echo ${MLIST} | sed -e \"s/,/ /\"`"
+ MLIST="`echo ${MLIST} | sed -e \"s/,/ /g\"`"
export MLIST
;;
cmdline_hwopts
# Load modules listed in MY_HWOPTS if /lib/modules exists
-
if [ -d '/lib/modules' ]
then
good_msg 'Loading modules'
# Load appropriate kernel modules
- for modules in $MY_HWOPTS
- do
- modules_scan $modules
- eval DO_`echo $modules | sed 's/-//'`=1
- done
+ if [ "${NODETECT}" -ne '1' ]
+ then
+ for modules in $MY_HWOPTS
+ do
+ modules_scan $modules
+ eval DO_`echo $modules | sed 's/-//'`=1
+ done
+ fi
+
+ # Always eval doload=...
+ modules_load $MDOLIST
else
for modules in $MY_HWOPTS
do