summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-04-05 16:32:47 -0500
committerJohn Klug <john.klug@multitech.com>2018-04-13 10:41:01 -0500
commit5b30aaf9b5725c0933fc6a49c4b801e8e0d1aeed (patch)
tree861db31cd0114d92bb3b22b061eb1124052a27a4
parent17d42b12932554635ee568c7758805c05a83f7ba (diff)
downloadmeta-multitech-3.3.25.tar.gz
meta-multitech-3.3.25.tar.bz2
meta-multitech-3.3.25.zip
Fix post install so it only runs when package is installed.3.3.25
-rw-r--r--recipes-kernel/vizzini/vizzini.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/recipes-kernel/vizzini/vizzini.inc b/recipes-kernel/vizzini/vizzini.inc
index eb9bc54..fa7b478 100644
--- a/recipes-kernel/vizzini/vizzini.inc
+++ b/recipes-kernel/vizzini/vizzini.inc
@@ -5,7 +5,7 @@ PRIORITY = "optional"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-INC_PR = "r1"
+INC_PR = "r2"
SRC_URI = " \
file://vizzini.init \
@@ -48,6 +48,12 @@ do_install() {
}
pkg_postinst_${PN} () {
- /sbin/depmod -a
+ if [ -z "$D" ]; then
+ depmod -a ${MLINUX_KERNEL_VERSION}${MLINUX_KERNEL_EXTRA_VERSION}
+ else
+ # image.bbclass will call depmodwrapper after everything is installed,
+ # no need to do it here as well
+ :
+ fi
}