1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-12-04 01:20:43 +01:00
init-scripts/scripts/modules_load.sh.in

22 lines
247 B
Bash
Raw Normal View History

#!/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"