diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-03 10:46:42 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-03 10:46:42 +0000 |
commit | 4322a92f1e2ddc0f98f0309d0eb0332ad56160cb (patch) | |
tree | b0f0f1de773a30d82ac54ae1404d87752b438891 /meta/packages/modutils/files | |
parent | bca3ead8ab8ca56137ebcce12a9a74c856b4a8d4 (diff) | |
download | openembedded-core-4322a92f1e2ddc0f98f0309d0eb0332ad56160cb.tar.gz openembedded-core-4322a92f1e2ddc0f98f0309d0eb0332ad56160cb.tar.bz2 openembedded-core-4322a92f1e2ddc0f98f0309d0eb0332ad56160cb.zip |
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/files')
-rwxr-xr-x | meta/packages/modutils/files/modutils.sh | 4 |
1 files changed, 1 insertions, 3 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 [ -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 |