c6719d4f797bd853eadcd6dc63ece8aafd93a7d7
[vuplus_openembedded] / packages / slugos-init / files / modulefunctions
1 #!/bin/sh
2 # . this file to load the functions for automatically loading modules
3
4 . /etc/default/functions
5
6 loaddiskmods(){
7         modprobe scsi_mod
8         modprobe sd_mod 
9         modprobe usbcore 
10         case "$(machine)" in
11             nslu2)                     
12                 modprobe ehci-hcd
13                 modprobe ohci-hcd
14                 ;;
15             nas100d)
16                 modprobe ehci-hcd
17                 modprobe uhci-hcd
18                 ;;
19
20         esac
21         modprobe usb-storage
22 }
23
24 loadnetmods(){
25         modprobe af_packet
26         case "$(machine)" in
27             ixdp425|nslu2|nas100d)
28                 modprobe ixp4xx_mac
29                 ;;                     
30         esac
31 }
32
33 loadmiscmods(){
34         modprobe ixp4xx_rng
35         modprobe i2c_dev
36 }
37