]> code.ossystems Code Review - openembedded-core.git/commitdiff
pulseaudio 1.1: replace hardcoded /etc with ${sysconfdir}
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 29 Nov 2011 21:24:59 +0000 (22:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Nov 2011 15:33:28 +0000 (15:33 +0000)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/pulseaudio/pulseaudio.inc
meta/recipes-multimedia/pulseaudio/pulseaudio_1.1.bb

index 6cd6d161a961fe80285c74f772d0e428ac4f0185..131d659629aa07ce43a9f71737c50607d8ce1e3d 100644 (file)
@@ -90,13 +90,13 @@ pkg_postinst_${PN}-server() {
         if [ "x$D" != "x" ]; then
                 exit 1
         fi
-        grep -q pulse: /etc/group || addgroup pulse
-        grep -q pulse: /etc/passwd || \
+        grep -q pulse: ${sysconfdir}/group || addgroup pulse
+        grep -q pulse: ${sysconfdir}/passwd || \
             adduser --disabled-password --home=/var/run/pulse --system \
                     --ingroup pulse --no-create-home -g "Pulse audio daemon" pulse
         addgroup pulse audio
-        if [ -e /etc/init.d/populate-volatile.sh ] ; then
-            /etc/init.d/populate-volatile.sh update
+        if [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then
+            ${sysconfdir}/init.d/populate-volatile.sh update
         fi
 }
 
index df3a53e11e16b5c409c29546e1fbd578fdeb5149..576d2b7470610dc80daf519b39766337dfbfed61 100644 (file)
@@ -1,6 +1,6 @@
 require pulseaudio.inc
 
-PR = "r1"
+PR = "r2"
 
 DEPENDS += "libjson gdbm speex libxml-parser-perl-native"