summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/modulefunctions
diff options
context:
space:
mode:
authorMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-28 15:41:26 +0000
committerMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-28 15:41:26 +0000
commit1decdb826d58ca77eedf9516b4b250b03d398afc (patch)
treef47c9e97068dda1786e8b34453b1a5895f580a7d /packages/slugos-init/files/modulefunctions
parentc4de89456a82bc97d97b0905f33f825ee303a099 (diff)
slugos-init: Further improvements to module loading
Diffstat (limited to 'packages/slugos-init/files/modulefunctions')
-rw-r--r--packages/slugos-init/files/modulefunctions37
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/slugos-init/files/modulefunctions b/packages/slugos-init/files/modulefunctions
new file mode 100644
index 0000000000..c6719d4f79
--- /dev/null
+++ b/packages/slugos-init/files/modulefunctions
@@ -0,0 +1,37 @@
+#!/bin/sh
+# . this file to load the functions for automatically loading modules
+
+. /etc/default/functions
+
+loaddiskmods(){
+ modprobe scsi_mod
+ modprobe sd_mod
+ modprobe usbcore
+ case "$(machine)" in
+ nslu2)
+ modprobe ehci-hcd
+ modprobe ohci-hcd
+ ;;
+ nas100d)
+ modprobe ehci-hcd
+ modprobe uhci-hcd
+ ;;
+
+ esac
+ modprobe usb-storage
+}
+
+loadnetmods(){
+ modprobe af_packet
+ case "$(machine)" in
+ ixdp425|nslu2|nas100d)
+ modprobe ixp4xx_mac
+ ;;
+ esac
+}
+
+loadmiscmods(){
+ modprobe ixp4xx_rng
+ modprobe i2c_dev
+}
+