diff options
| author | Michael Lauer <mickey@vanille-media.de> | 2006-09-29 10:19:15 +0000 |
|---|---|---|
| committer | Michael Lauer <mickey@vanille-media.de> | 2006-09-29 10:19:15 +0000 |
| commit | 289a6021a27890a78e80bd8927d2654bbf7bc9be (patch) | |
| tree | 85b3314954521288ad348372d09b814609e84007 /packages/slugos-init/files/modulefunctions | |
| parent | 4449cfbd00ef251965535e1d53cca33f36683657 (diff) | |
| parent | a4fb8cb9e3d0de0caa21da16f9644331ccab10c3 (diff) | |
merge of c03b28dceb994cd2ab73b1d2bee782c3a0360eac
and de4a9ac2f220bdc6c4e7d015feb7d54b59f4cf40
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 +} + |
