summaryrefslogtreecommitdiff
path: root/modutils/files
diff options
context:
space:
mode:
authorHolger Schurig <schurig@mn-solutions.de>2004-09-21 11:18:50 +0000
committerHolger Schurig <schurig@mn-solutions.de>2004-09-21 11:18:50 +0000
commit3b3989442075d0a4c6c32cb187de17d87bf65fbd (patch)
treeba3d308325fc33193a8deccf5b2e46a6c11cd834 /modutils/files
parent92c8500b0879736788fa90dfb0c5d8b4244d9d17 (diff)
made it source-able
removed the modutils -t boot stuff, -t is not supported by busybox modutils anyway added a streamlined modutils.sh to MNCI "Ramses" for faster boot BKrev: 41500e1amZdvSJObOllaQ_D6QtMKdQ
Diffstat (limited to 'modutils/files')
-rw-r--r--modutils/files/modutils.sh17
-rw-r--r--modutils/files/ramses/modutils.sh0
2 files changed, 17 insertions, 0 deletions
diff --git a/modutils/files/modutils.sh b/modutils/files/modutils.sh
index e69de29bb2..a89d8e4141 100644
--- a/modutils/files/modutils.sh
+++ b/modutils/files/modutils.sh
@@ -0,0 +1,17 @@
+[ -f /proc/modules ] || exit 0
+[ -e /sbin/depmod ] || exit 0
+
+[ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
+depmod -Ae
+
+[ "$VERBOSE" != no ] && echo -n "Loading modules: "
+(cat /etc/modules; echo; ) |
+while read module args
+do
+ case "$module" in
+ \#*|"") continue ;;
+ esac
+ [ "$VERBOSE" != no ] && echo -n "$module "
+ modprobe $module $args
+done
+[ "$VERBOSE" != no ] && echo
diff --git a/modutils/files/ramses/modutils.sh b/modutils/files/ramses/modutils.sh
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/modutils/files/ramses/modutils.sh