updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / whatpulse / whatpulse.install
blob5b8de30244c33a3297f081acf90dfcf94382983d
1 post_install() {
2         # Create the 'input' group
3         if [ -n "`cat /etc/group | grep -e ^input:`" ] ; then
4             echo "Group 'input' already exists!"
5         else
6             groupadd input
7             echo "Created group 'input'."
8         fi
9         
10         # Display some information about how to set-up permissions
11         /bin/cat <<EOF
12   
13 ==> Now add your user to the 'input' group:
14 ==> # gpasswd -a USERNAME input
15 ==>
16 ==> Now reboot to fix the input permissions, or execute this:
17 ==> # find /dev/input/ -iname "event*" -exec chmod 644 {} ;
18 ==> 
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.
23 EOF
26 pre_remove() {
27         # Warn the user about the 'input' group
28         echo "The \"input\" group still exists, remove it if you don't use it anymore."