aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysstat/sysstat.inc
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2011-12-07 15:59:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-08 15:14:26 +0000
commit6bf82c26f95359c08611bc9a44accf1593b2a850 (patch)
treeb253549b4098d36fdbcc1c11c2cc7257f6c5ed14 /meta/recipes-extended/sysstat/sysstat.inc
parent852c4b8dcc99aa93e45680c0e42917d7dd202d55 (diff)
downloadopenembedded-core-contrib-6bf82c26f95359c08611bc9a44accf1593b2a850.tar.gz
sysstat: don't run populate-volatile.sh update in do_rootfs, first boot or without populate-volatile.sh
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sysstat/sysstat.inc')
-rw-r--r--meta/recipes-extended/sysstat/sysstat.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
index 2936f96174..9da40a7067 100644
--- a/meta/recipes-extended/sysstat/sysstat.inc
+++ b/meta/recipes-extended/sysstat/sysstat.inc
@@ -22,7 +22,12 @@ do_install() {
}
pkg_postinst_${PN} () {
- /etc/init.d/populate-volatile.sh update
+ if [ -n "$D" ]; then
+ exit 0
+ fi
+ if [ -e /etc/init.d/populate-volatile.sh ]; then
+ /etc/init.d/populate-volatile.sh update
+ fi
}