diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-03-15 15:16:34 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-03-15 12:55:50 -0700 |
commit | c86bd7f528b9e57d5fe7cd9e633e867a80974cd8 (patch) | |
tree | 1555caf4578fb565d583d9fe2110f1a6f4a2fac6 /meta | |
parent | f97194913577f2a7f34d9676d10bd2de91a3ee2e (diff) | |
download | poky-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')
-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 | ||