]> code.ossystems Code Review - openembedded-core.git/commitdiff
modutils-initscripts: do not call depmod on boot time if not needed
authorMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 3 Jul 2008 10:46:42 +0000 (10:46 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 3 Jul 2008 10:46:42 +0000 (10:46 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4796 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/modutils/files/modutils.sh
meta/packages/modutils/modutils-initscripts.bb

index 89281276fdcd8a47a02937ebe577e4da877c9b22..35a6412065e743f4b9114a8de6aea7e1c5b9b211 100755 (executable)
@@ -5,9 +5,7 @@ LOAD_MODULE=modprobe
 [ -f /etc/modules ] || exit 0
 [ -e /sbin/modprobe ] || LOAD_MODULE=insmod
 
-if [ ! -e /sbin/depmod ]; then
-       [ -f /lib/modules/`uname -r`/modules.dep ] || LOAD_MODULE=insmod
-else 
+if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then
        [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
        depmod -Ae
 fi
index bf51ca87f6bb46293a160200b75c342959aafc61..07f4810fc6e578c9eb9b0c1fa49d9ff8c61b13ad 100644 (file)
@@ -2,7 +2,7 @@ SECTION = "base"
 DESCRIPTION = "modutils configuration files"
 LICENSE = "PD"
 SRC_URI = "file://modutils.sh"
-PR = "r2"
+PR = "r3"
 
 INITSCRIPT_NAME = "modutils.sh"
 INITSCRIPT_PARAMS = "start 20 S ."