diff options
Diffstat (limited to 'meta/recipes-graphics/x11-common/xserver-nodm-init.bb')
-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 | ||