mirror of
https://github.com/pygos/init-scripts.git
synced 2024-11-12 16:17:09 +01:00
22 lines
247 B
Bash
22 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"
|