1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-05-08 06:56:13 +02:00
init-scripts/scripts/modules_load.sh.in
David Oberhollenzer 021fa43244 Initial commit
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-11-05 16:11:47 +01:00

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"