summaryrefslogtreecommitdiff
path: root/packages/modutils/files/mnci/modutils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/modutils/files/mnci/modutils.sh')
-rwxr-xr-x[-rw-r--r--]packages/modutils/files/mnci/modutils.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/modutils/files/mnci/modutils.sh b/packages/modutils/files/mnci/modutils.sh
index e69de29bb2..378915c270 100644..100755
--- a/packages/modutils/files/mnci/modutils.sh
+++ b/packages/modutils/files/mnci/modutils.sh
@@ -0,0 +1,10 @@
+depmod -Ae
+
+(cat /etc/modules; echo; ) |
+while read module args
+do
+ case "$module" in
+ \#*|"") continue ;;
+ esac
+ modprobe $module $args
+done