diff options
author | Michael-Luke Jones <mlj28@cam.ac.uk> | 2006-09-28 15:42:38 +0000 |
---|---|---|
committer | Michael-Luke Jones <mlj28@cam.ac.uk> | 2006-09-28 15:42:38 +0000 |
commit | 502fa5021d3ed7f40d27d67d1656b9bdd86f017d (patch) | |
tree | 1374b9eab9cd1652ba06893b8cf12ba9056f0d60 /packages/slugos-init/files/modulefunctions | |
parent | cfa1a378942a6fa992cc5f2ac33966fdf3674473 (diff) | |
parent | 1decdb826d58ca77eedf9516b4b250b03d398afc (diff) |
merge of '40086c5da432566b67050aa98a809bd2a6dfa5ee'
and 'fdaad16592058e7e3020ce9a75962b0be856a2f6'
Diffstat (limited to 'packages/slugos-init/files/modulefunctions')
-rw-r--r-- | packages/slugos-init/files/modulefunctions | 37 |
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 +} + |