2 # Create the 'input' group
3 if [ -n "`cat /etc/group | grep -e ^input:`" ] ; then
4 echo "Group 'input' already exists!"
7 echo "Created group 'input'."
10 # Display some information about how to set-up permissions
13 ==> Now add your user to the 'input' group:
14 ==> # gpasswd -a USERNAME input
16 ==> Now reboot to fix the input permissions, or execute this:
17 ==> # find /dev/input/ -iname "event*" -exec chmod 644 {} ;
19 ==> This temporarily grants everybody read permissions on
20 ==> all input devices, something you should obviously avoid if
21 ==> you fear somebody will eavesdrop those input devices.
27 # Warn the user about the 'input' group
28 echo "The \"input\" group still exists, remove it if you don't use it anymore."