summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/initscripts/loadmodules.sh
diff options
context:
space:
mode:
authorMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-24 08:30:45 +0000
committerMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-24 08:30:45 +0000
commitb063040bc4416c347fb179df5fa71402cd6011d0 (patch)
tree525200d1114e10823ef7dfc3e59bded3835c7116 /packages/slugos-init/files/initscripts/loadmodules.sh
parenta56c24ff15fdd6f51cc2cd606c459b76388162c7 (diff)
busybox: drop in an mdev patch from busybox.net
slugos-init: add in module loading logic for NSLU2 * Maintainers with other ixp4xx devices should follow suit
Diffstat (limited to 'packages/slugos-init/files/initscripts/loadmodules.sh')
-rw-r--r--packages/slugos-init/files/initscripts/loadmodules.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/packages/slugos-init/files/initscripts/loadmodules.sh b/packages/slugos-init/files/initscripts/loadmodules.sh
new file mode 100644
index 0000000000..2ed4156ab0
--- /dev/null
+++ b/packages/slugos-init/files/initscripts/loadmodules.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# This script is used for loading modules required by SlugOS
+# Currently, this script only supports the NSLU2
+
+. /etc/default/functions # Load $(machine) function required
+
+echo "Loading networking modules"
+
+modprobe af_packet # Required for DHCP
+
+modprobe ixp4xx_npe
+sleep 1 # Allow firmware load to occur
+
+# 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
+
+echo "Loading usb storage modules"
+modprobe scsi_mod
+modprobe usbcore
+
+# Add more entries as appropriate
+case "$(machine)" in
+ nslu2)
+ modprobe ohci_hcd
+ modprobe ehci_hcd
+ ;;
+esac
+
+modprobe usb_storage
+
+echo "Loading other modules"
+modprobe ixp4xx_rng
+modprobe i2c_dev
+
+exit 0 \ No newline at end of file