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>
This commit is contained in:
Zhai Edwin 2011-08-26 19:59:54 +08:00 committed by Richard Purdie
parent dc3a8274c7
commit 44fd68da7c
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ case "$1" in
chmod o+w /var/log
chmod g+r /dev/tty[0-3]
chmod o+rw /dev/input/*
# hidraw device is probably needed
if [ -e /dev/hidraw0 ]; then
chmod o+rw /dev/hidraw*
fi
fi
# Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211]
su -l -c '/etc/X11/Xserver&' $username