summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-03-15 15:16:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-15 17:48:27 +0000
commit4df75586c0f5447670fe945285c7ad01c5e1f37f (patch)
treee6474ed3d22eeff817827908017068dba48ef140
parentf781c35da9a11eefdb06bda72ca89753df863efa (diff)
downloadopenembedded-core-4df75586c0f5447670fe945285c7ad01c5e1f37f.tar.gz
openembedded-core-4df75586c0f5447670fe945285c7ad01c5e1f37f.tar.bz2
openembedded-core-4df75586c0f5447670fe945285c7ad01c5e1f37f.zip
xserver-nodm-init: add xuser to group audio
add rootless X user to group audio to access /dev/snd/* Fixes [YOCTO #799] CC: Ke Yu <ke.yu@intel.com> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
-rw-r--r--meta/recipes-graphics/x11-common/xserver-nodm-init.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
index a93acc9ee3..abc25db9cc 100644
--- a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
+++ b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
@@ -3,7 +3,7 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
SECTION = "x11"
PRIORITY = "optional"
-PR = "r24"
+PR = "r25"
RDEPENDS_${PN} = "dbus-wait sudo"
SRC_URI = "file://xserver-nodm \
@@ -30,12 +30,13 @@ pkg_postinst_${PN} () {
fi
if [ -f /etc/X11/Xusername ]; then
- # create the rootless X user, and add user to group tty, video
+ # create the rootless X user, and add user to group tty, video, audio
username=`cat /etc/X11/Xusername`
adduser --disabled-password $username
# FIXME: use addgroup if busybox addgroup is ready
sed -i -e "s/^video:.*/&${username}/g" /etc/group
sed -i -e "s/^tty:.*/&${username}/g" /etc/group
+ sed -i -e "s/^audio:.*/&${username}/g" /etc/group
fi
}