summaryrefslogtreecommitdiffstats
path: root/init.d/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/modutils')
-rwxr-xr-xinit.d/modutils21
1 files changed, 21 insertions, 0 deletions
diff --git a/init.d/modutils b/init.d/modutils
new file mode 100755
index 0000000..0a6c8c5
--- /dev/null
+++ b/init.d/modutils
@@ -0,0 +1,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
+}
+