3 echo "Creating jupiter group and adding rules to sudoers file"
4 if [ ! "$(grep jupiter /etc/group)" ]; then
5 echo "Adding Jupiter group"
6 /usr/sbin/groupadd jupiter
8 grep jupiter /etc/sudoers >/dev/null 2>&1 || echo "%jupiter ALL=NOPASSWD: /usr/lib/jupiter/scripts/bluetooth, /usr/lib/jupiter/scripts/camera, /usr/lib/jupiter/scripts/cpu-control, /usr/lib/jupiter/scripts/resolutions, /usr/lib/jupiter/scripts/rotate, /usr/lib/jupiter/scripts/touchpad, /usr/lib/jupiter/scripts/vga-out, /usr/lib/jupiter/scripts/wifi" >> /etc/sudoers
9 echo "Setting permissions.."
10 chown -R root:jupiter /usr/lib/jupiter
11 if [ ! -d "/var/jupiter" ]; then
15 if [ -d "/var/jupiter" ]; then
16 chown -R root:jupiter /var/jupiter
17 chmod -R 775 /var/jupiter
20 if [ -e "/usr/lib/jupiter/scripts/jupiter" ]; then
21 /usr/lib/jupiter/scripts/jupiter || true
24 if [ -e "/etc/pm/sleep.d/00-jupiter-wifi" ]; then
25 rm -f /etc/pm/sleep.d/00-jupiter-wifi 2>/dev/null || true
28 echo "Restarting ACPID ..."
29 /etc/rc.d/acpid restart 2>/dev/null || true
32 ==> Please add your user and any users who will use jupiter to the jupiter
33 ==> group (gpasswd -a user jupiter)
34 ==> If Performance Modes can't be setted, add in your /etc/rc.conf:
35 ==> MODULES=(cpufreq ...)