summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/modulefunctions
blob: a497f71f6c035e5ffe5d9fa2bfd6efc274930fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# . this file to load the functions for automatically loading modules

. /etc/default/functions

loaddiskmods(){
	case "$(machine)" in
	    nslu2)                     
	        modprobe ehci-hcd
	        modprobe ohci-hcd
		;;
            nas100d)
	        modprobe ehci-hcd
                modprobe uhci-hcd
                modprobe pata-artop
                ;;
            dsmg600)
	        modprobe ehci-hcd
                modprobe uhci-hcd
                modprobe pata-artop
                ;;

	esac
}

loadnetmods(){
	case "$(machine)" in
            dsmg600)
                modprobe via-velocity
                ;;
	    *)
		true
		;;
	esac
}

loadmiscmods(){
	true
}