1 # arg 1: the new package version
6 # arg 1: the new package version
9 # Check if the input group exists
10 if [ ! `awk -F ":" '$1 ~ /^input$/ { print $3 }' /etc/group` ]; then
11 # Check if GID 103 is available
12 if [ -z `awk -F ":" '$3 ~ /^103$/ { print $3 }' /etc/group` ]; then
15 groupadd input # settle for any gid
21 echo " >>> To get access to run gizmo: "
22 echo " >>> add yourself to the group 'input' and log out and back in"
23 echo " >>> WARNING: Only add users you trust to the 'input' group, as they"
24 echo " >>> will have access to read anything entered on any input"
25 echo " >>> device (keyboard, mouse, etc)."
27 echo " >>> To customize gizmod's settings: "
28 echo ' >>> run the commands:'
29 echo ' >>> "[ -e ~/.gizmod ] && mv -i ~/.gizmod ~/.gizmod.old"'
30 echo ' >>> "cp -r /etc/gizmod ~/.gizmod"'
31 echo ' >>> change ~/.gizmod to your liking.'
32 echo ' >>> (See http://gizmod.wiki.sourceforge.net/Configuration)'
34 echo " >>> To load gizmod on login with Gnome: "
35 echo " >>> add an entry in System->Preferences->Sessions->Startup Programs"
36 echo " >>> To load gizmod on login with KDE:"
37 echo ' >>> run "ln -s `which gizmod` ~/.kde/Autostart/gizmod"'
44 # arg 1: the new package version
45 # arg 2: the old package version
50 # arg 1: the old package version
55 # arg 1: the old package version
60 if [ `awk -F ":" '$1 ~ /^input$/ { print $3 }' /etc/group` -eq 103 ]; then
65 echo " >>> The GID of the group 'input' is not set to the default (103) for this package."
66 echo " >>> This means that either the GID 103 was taken at the time you first added the"
67 echo " >>> package or the input group already existed before adding this package."
68 echo " >>> As a result, the group will not removed be automatically."
70 echo " >>> You can check if any files are owned by the group with the command: "
71 echo " >>> 'find / -group input'"
72 echo " >>> If you wish to remove the group, you can do so with the command 'groupdel input'."