summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2011-08-26 19:59:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-07 22:54:14 +0100
commit44fd68da7c5b00555e8f32b9a8d0bf24b42c26cd (patch)
treeb9940e08e38613d911ba1b58f7719500154183d0 /meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
parentdc3a8274c7e935fa564eea142d2535c9bcf2b272 (diff)
downloadpoky-44fd68da7c5b00555e8f32b9a8d0bf24b42c26cd.tar.gz
xserver-nodm-init: Change hidraw mode to allow normal user access
USB HID like touch screen could be presented as hidraw* device, this change make user under rootless X can access them. (From OE-Core rev: ddb54d4a467b51f5f8f305f532bd5ea64df92876) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm')
-rwxr-xr-xmeta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
index 858af0b67e..c707a4bdb8 100755
--- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
+++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
@@ -34,6 +34,10 @@ case "$1" in
34 chmod o+w /var/log 34 chmod o+w /var/log
35 chmod g+r /dev/tty[0-3] 35 chmod g+r /dev/tty[0-3]
36 chmod o+rw /dev/input/* 36 chmod o+rw /dev/input/*
37 # hidraw device is probably needed
38 if [ -e /dev/hidraw0 ]; then
39 chmod o+rw /dev/hidraw*
40 fi
37 fi 41 fi
38 # Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211] 42 # Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211]
39 su -l -c '/etc/X11/Xserver&' $username 43 su -l -c '/etc/X11/Xserver&' $username