]> code.ossystems Code Review - openembedded-core.git/commitdiff
pulseaudio: do not postpone postinstall
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Mon, 4 Feb 2013 13:38:05 +0000 (15:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2013 09:35:03 +0000 (09:35 +0000)
Since populate-volatile.sh will run everytime the device boots, no
need to postpone the postinstall when the rootfs is created.

[YOCTO #3840]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-multimedia/pulseaudio/pulseaudio.inc

index 2fed4f954cfdcc2a31ca95d6c82ff536443f4678..81573e3100a29a90abe57a1a16ce5ca8d50aff8d 100644 (file)
@@ -99,12 +99,7 @@ CONFFILES_pulseaudio-server = "\
   "
 
 pkg_postinst_${PN}-server() {
-        # can't do this offline
-        if [ "x$D" != "x" ]; then
-                exit 1
-        fi
-
-        if [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then
+        if [ -z "$D" ] && [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then
             ${sysconfdir}/init.d/populate-volatile.sh update
         fi
 }