aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/modules.initd
blob: 8c4ff4886755d4d186362ff25d0b98042e0d0034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run

description="Loads a user defined list of kernel modules."

depend()
{
	before hwclock hwdrivers
	keyword noopenvz noprefix novserver
}


start() {
	if [ -f /etc/modules ] ; then
		ebegin "Loading modules"
		sed 's/\#.*//g' < /etc/modules |
		while read module args
		do
			modprobe -q $module $args
		done
		eend $?
	fi
}