summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/functions20
-rw-r--r--scripts/local2
2 files changed, 22 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index 717418f..7e8c725 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -105,3 +105,23 @@ run_scripts()
reduce_prereqs
call_scripts
}
+
+load_modules()
+{
+ for x in /sys/bus/pci/devices/*; do
+ modprobe -q $(cat ${x}/modalias)
+ done
+
+ # Give the USB bus a moment to catch up
+ sleep 2
+
+ for x in /sys/bus/usb/devices/*; do
+ modprobe -q $(cat ${x}/modalias)
+ done
+
+ # Load the modules
+ # FIXME - do module options here
+ for x in $(cat /conf/modules); do
+ modprobe -v $x
+ done
+}
diff --git a/scripts/local b/scripts/local
index cf9e331..99eea77 100644
--- a/scripts/local
+++ b/scripts/local
@@ -20,6 +20,8 @@ mountroot ()
roflag=-w
fi
+ modprobe ${FSTYPE}
+
# Mount root
mount ${roflag} -t ${FSTYPE} ${ROOT} ${rootmnt}