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
This commit is contained in:
Marcin Juszkiewicz 2008-07-03 10:46:42 +00:00
parent bca3ead8ab
commit 4322a92f1e
2 changed files with 2 additions and 4 deletions

View File

@ -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

View 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 ."