mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
24 lines
343 B
Plaintext
24 lines
343 B
Plaintext
#!/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
|
|
}
|
|
|