4
# Provides: jupiter-healthcheck
5
# Default-Start: 2 3 4 5
9
# Short-Description: Auto corrects simple issues with Jupiter configuration
13
. /lib/lsb/init-functions
17
### Correct problems with sudoers ordering
18
SLAST=$((/usr/bin/tail -n 1 /etc/sudoers | /bin/grep jupiter) && echo OK)
19
if [ "$SLAST" = "" ]; then
20
echo "Jupiter: Autocorrecting issue with sudoers"
21
/bin/sed -i /^%jupit.*\$/d /etc/sudoers
22
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