summaryrefslogtreecommitdiffstats
path: root/meta/packages/modutils
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-07-03 10:46:42 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-07-03 10:46:42 +0000
commit4322a92f1e2ddc0f98f0309d0eb0332ad56160cb (patch)
treeb0f0f1de773a30d82ac54ae1404d87752b438891 /meta/packages/modutils
parentbca3ead8ab8ca56137ebcce12a9a74c856b4a8d4 (diff)
downloadpoky-4322a92f1e2ddc0f98f0309d0eb0332ad56160cb.tar.gz
modutils-initscripts: do not call depmod on boot time if not needed
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4796 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/modutils')
-rwxr-xr-xmeta/packages/modutils/files/modutils.sh4
-rw-r--r--meta/packages/modutils/modutils-initscripts.bb2
2 files changed, 2 insertions, 4 deletions
diff --git a/meta/packages/modutils/files/modutils.sh b/meta/packages/modutils/files/modutils.sh
index 89281276fd..35a6412065 100755
--- a/meta/packages/modutils/files/modutils.sh
+++ b/meta/packages/modutils/files/modutils.sh
@@ -5,9 +5,7 @@ LOAD_MODULE=modprobe
5[ -f /etc/modules ] || exit 0 5[ -f /etc/modules ] || exit 0
6[ -e /sbin/modprobe ] || LOAD_MODULE=insmod 6[ -e /sbin/modprobe ] || LOAD_MODULE=insmod
7 7
8if [ ! -e /sbin/depmod ]; then 8if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then
9 [ -f /lib/modules/`uname -r`/modules.dep ] || LOAD_MODULE=insmod
10else
11 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..." 9 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
12 depmod -Ae 10 depmod -Ae
13fi 11fi
diff --git a/meta/packages/modutils/modutils-initscripts.bb b/meta/packages/modutils/modutils-initscripts.bb
index bf51ca87f6..07f4810fc6 100644
--- a/meta/packages/modutils/modutils-initscripts.bb
+++ b/meta/packages/modutils/modutils-initscripts.bb
@@ -2,7 +2,7 @@ SECTION = "base"
2DESCRIPTION = "modutils configuration files" 2DESCRIPTION = "modutils configuration files"
3LICENSE = "PD" 3LICENSE = "PD"
4SRC_URI = "file://modutils.sh" 4SRC_URI = "file://modutils.sh"
5PR = "r2" 5PR = "r3"
6 6
7INITSCRIPT_NAME = "modutils.sh" 7INITSCRIPT_NAME = "modutils.sh"
8INITSCRIPT_PARAMS = "start 20 S ." 8INITSCRIPT_PARAMS = "start 20 S ."