mirror of
https://github.com/pygos/init-scripts.git
synced 2024-11-22 12:19:46 +01:00
021fa43244
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
21 lines
247 B
Bash
21 lines
247 B
Bash
#!/bin/sh
|
|
MODLIST="@ETCPATH@/modules"
|
|
|
|
if [ ! -f "$MODLIST" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
while read LINE;
|
|
do
|
|
trimmed=`echo -- $LINE`
|
|
[ ! -z "$trimmed" ] || continue
|
|
set $trimmed
|
|
|
|
case "$1" in
|
|
\#*)
|
|
;;
|
|
*)
|
|
modprobe "$1"
|
|
;;
|
|
esac
|
|
done < "$MODLIST"
|