diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-03-15 15:16:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-15 17:49:17 +0000 |
commit | 6b16a5fd421adaaad092919c4c8c041135fbb382 (patch) | |
tree | d76d4d78a28aebcc69c2acf8ae52c665e203d677 /meta/recipes-graphics | |
parent | ed1cbc9fa803599ad9d4a69edd3b0eefd2d9278e (diff) | |
download | poky-6b16a5fd421adaaad092919c4c8c041135fbb382.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.bb | 5 |
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" | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
4 | SECTION = "x11" | 4 | SECTION = "x11" |
5 | PRIORITY = "optional" | 5 | PRIORITY = "optional" |
6 | PR = "r24" | 6 | PR = "r25" |
7 | RDEPENDS_${PN} = "dbus-wait sudo" | 7 | RDEPENDS_${PN} = "dbus-wait sudo" |
8 | 8 | ||
9 | SRC_URI = "file://xserver-nodm \ | 9 | SRC_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 | ||