]>
Commit | Line | Data |
---|---|---|
a04d924e AM |
1 | #!/bin/sh |
2 | # (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com> | |
3 | # Modified: | |
4 | # Arkadiusz Miskiewicz <misiek@pld.org.pl> | |
5 | # | |
6 | # rc.modules: launch modules specified in /etc/modules | |
7824432b | 7 | # $Id: rc.modules,v 1.1.2.2 2001/09/30 10:19:36 misiek Exp $ |
a04d924e AM |
8 | |
9 | [ -f /etc/modules ] || exit 0 | |
10 | ||
11 | . /etc/rc.d/init.d/functions | |
12 | ||
13 | # Loop over every line in /etc/modules. | |
14 | (egrep -v "^(#|[[:blank:]]*#)" /etc/modules; echo) | # make sure there is a LF at the end | |
15 | while read module args | |
16 | do | |
17 | [ -z "$module" ] && continue | |
7824432b | 18 | _modprobe single --opt "$args" $module |
a04d924e AM |
19 | done |
20 |