module bbclass: sync depmod code with kernel.bbclass a bit
authorKoen Kooi <koen@openembedded.org>
Mon, 19 Apr 2010 07:10:02 +0000 (09:10 +0200)
committerKoen Kooi <koen@openembedded.org>
Mon, 19 Apr 2010 07:49:32 +0000 (09:49 +0200)
classes/module.bbclass

index eef9829..83463ac 100644 (file)
@@ -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 () {