summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-03-15 15:16:34 +0800
committerSaul Wold <sgw@linux.intel.com>2011-03-15 12:55:50 -0700
commitc86bd7f528b9e57d5fe7cd9e633e867a80974cd8 (patch)
tree1555caf4578fb565d583d9fe2110f1a6f4a2fac6 /meta/recipes-graphics
parentf97194913577f2a7f34d9676d10bd2de91a3ee2e (diff)
downloadpoky-c86bd7f528b9e57d5fe7cd9e633e867a80974cd8.tar.gz
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> (From OE-Core rev: 4df75586c0f5447670fe945285c7ad01c5e1f37f) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-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"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4SECTION = "x11" 4SECTION = "x11"
5PRIORITY = "optional" 5PRIORITY = "optional"
6PR = "r24" 6PR = "r25"
7RDEPENDS_${PN} = "dbus-wait sudo" 7RDEPENDS_${PN} = "dbus-wait sudo"
8 8
9SRC_URI = "file://xserver-nodm \ 9SRC_URI = "file://xserver-nodm \
@@ -30,12 +30,13 @@ pkg_postinst_${PN} () {
30 fi 30 fi
31 31
32 if [ -f /etc/X11/Xusername ]; then 32 if [ -f /etc/X11/Xusername ]; then
33 # create the rootless X user, and add user to group tty, video 33 # create the rootless X user, and add user to group tty, video, audio
34 username=`cat /etc/X11/Xusername` 34 username=`cat /etc/X11/Xusername`
35 adduser --disabled-password $username 35 adduser --disabled-password $username
36 # FIXME: use addgroup if busybox addgroup is ready 36 # FIXME: use addgroup if busybox addgroup is ready
37 sed -i -e "s/^video:.*/&${username}/g" /etc/group 37 sed -i -e "s/^video:.*/&${username}/g" /etc/group
38 sed -i -e "s/^tty:.*/&${username}/g" /etc/group 38 sed -i -e "s/^tty:.*/&${username}/g" /etc/group
39 sed -i -e "s/^audio:.*/&${username}/g" /etc/group
39 fi 40 fi
40} 41}
41 42