summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/initscripts/loadmodules.sh
diff options
context:
space:
mode:
authorMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-28 11:43:57 +0000
committerMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-28 11:43:57 +0000
commitedbf5a02126c8db32ba826e510459fbcb9a579e5 (patch)
treef54eed540bf257b1daa06fef7c34796c9d6b02bd /packages/slugos-init/files/initscripts/loadmodules.sh
parent6977e997471f6e448ba2e6d4f7f38ab0cf51967d (diff)
slugos-init: improve module loading at boot
Diffstat (limited to 'packages/slugos-init/files/initscripts/loadmodules.sh')
-rw-r--r--packages/slugos-init/files/initscripts/loadmodules.sh34
1 files changed, 4 insertions, 30 deletions
diff --git a/packages/slugos-init/files/initscripts/loadmodules.sh b/packages/slugos-init/files/initscripts/loadmodules.sh
index f2b28d8868..1bc540a148 100644
--- a/packages/slugos-init/files/initscripts/loadmodules.sh
+++ b/packages/slugos-init/files/initscripts/loadmodules.sh
@@ -4,41 +4,15 @@
# Currently, this script only supports the NSLU2
. /etc/default/functions # Load $(machine) function required
-
-echo "Starting Network Processing Engines"
-modprobe ixp4xx_npe
-sleep 1 # Wait for firmware load
+. /etc/default/modulefunctions
echo "Loading networking modules"
-
-modprobe af_packet # Required for DHCP
-
-# Add nas100d/loft below when mac definition is added to kernel
-case "$(machine)" in
- ixdp425|nslu2)
- modprobe ixp4xx_mac
- ;;
-esac
-
-# Add conditional DSM-G600 ethernet module load
+loadnetmods
echo "Loading usb storage modules"
-modprobe scsi_mod
-modprobe sd_mod
-modprobe usbcore
-
-# Add more entries as appropriate
-case "$(machine)" in
- nslu2)
- modprobe ohci_hcd
- modprobe ehci_hcd
- ;;
-esac
-
-modprobe usb_storage
+loadusbmods
echo "Loading other modules"
-modprobe ixp4xx_rng
-modprobe i2c_dev
+loadmiscmods
exit 0