aboutsummaryrefslogtreecommitdiff
path: root/scripts/modules_load.sh.in
blob: 58bb2abed8eb9165c83b7eae06312d211ff0146f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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"