blob: a7daf517e47eb794ba285b17cb383eb747b986a1 (
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/lw/aux-files/Attic/modules,v 1.1 2003/10/19 03:46:49 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
|