summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-04-19 09:10:02 +0200
committerKoen Kooi <koen@openembedded.org>2010-04-19 09:49:32 +0200
commit64693fed0f0daeb0247afc6c0bd3e1040eb50dc7 (patch)
tree3af21ae4a893ad42ecf3a9d77ca7d358f3346c70 /classes
parent2abdb290190cf4300c4cd00fba7fa7930abb57db (diff)
module bbclass: sync depmod code with kernel.bbclass a bit
Diffstat (limited to 'classes')
-rw-r--r--classes/module.bbclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/module.bbclass b/classes/module.bbclass
index eef98292a7..83463ac84c 100644
--- a/classes/module.bbclass
+++ b/classes/module.bbclass
@@ -24,11 +24,12 @@ module_do_install() {
}
pkg_postinst_append () {
- if [ -n "$D" ]; then
- exit 1
- fi
- depmod -a
+if [ -n "$D" ]; then
+ exit 1
+else
+ depmod -a ${KERNEL_VERSION}
update-modules || true
+fi
}
pkg_postrm_append () {