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"