summaryrefslogtreecommitdiff
path: root/recipes/modutils/files/mnci/modutils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/modutils/files/mnci/modutils.sh')
-rwxr-xr-xrecipes/modutils/files/mnci/modutils.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/modutils/files/mnci/modutils.sh b/recipes/modutils/files/mnci/modutils.sh
new file mode 100755
index 0000000000..378915c270
--- /dev/null
+++ b/recipes/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