aboutsummaryrefslogblamecommitdiffstats
path: root/main/openrc/modules.initd
blob: ef7d1f15f12f72aca7ebc8aa988a62a629dda043 (plain) (tree)
1
2
3
4
5
6
7





                                                          
                                















                                                 
#!/sbin/runscript

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
}