summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/x11-common
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/x11-common')
-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