summaryrefslogtreecommitdiffstats
path: root/init.d/modutils
blob: 0a6c8c5cf111c58cbb2a7bebfe554368fa3c29b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript

PATH="/sbin:/bin:/usr/bin:/usr/bin"

start() {
#[ -e /sbin/depmod ] || exit 0
#echo -n "Calculating module dependencies... "
#depmod -a > /dev/null
#echo "done."

	if [ -f /etc/modules ] ; then
		sed 's/\#.*//g' < /etc/modules |
		while read module args
		do
			ebegin "Loading $module"
			modprobe -q $module $args
			eend $?
		done
	fi
}