summaryrefslogtreecommitdiff
blob: 7a469b9031763d84f4d2bff66ab5da252d3f0cba (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
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo/src/livecd/profiles/kde/aux-files/Attic/modules,v 1.1 2003/10/19 03:10:54 livewire Exp $


depend() {
	need bootmisc localmount
}

start() {
	# Loop over every line in /etc/modules.autoload.
	(cat /etc/modules.autoload; echo) | # make sure there is a LF at the end
	while read module args
	do
		case "${module}" in
			\#*|"") continue ;;
		esac
		ebegin "  Loading module ${module}"
		modprobe ${module} ${args} &>/dev/null
		eend $? "  Failed to load ${module}"
done
}


# vim:ts=4