summaryrefslogtreecommitdiff
path: root/modutils
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
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')
-rw-r--r--modutils/files/modutils.sh17
-rw-r--r--modutils/files/ramses/modutils.sh0
-rw-r--r--modutils/modutils-initscripts.oe7
3 files changed, 21 insertions, 3 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
diff --git a/modutils/modutils-initscripts.oe b/modutils/modutils-initscripts.oe
index 0754b487fc..13d21c3010 100644
--- a/modutils/modutils-initscripts.oe
+++ b/modutils/modutils-initscripts.oe
@@ -1,7 +1,8 @@
DESCRIPTION = "modutils configuration files"
-SRC_URI = "file://modutils"
+SRC_URI = "file://modutils.sh"
+PR = "r1"
-INITSCRIPT_NAME = "modutils"
+INITSCRIPT_NAME = "modutils.sh"
INITSCRIPT_PARAMS = "start 20 S ."
inherit update-rc.d
@@ -11,5 +12,5 @@ do_compile () {
do_install () {
install -d ${D}/etc/init.d/
- install -m 0755 ${WORKDIR}/modutils ${D}/etc/init.d/
+ install -m 0755 ${WORKDIR}/modutils.sh ${D}/etc/init.d/
}