Skip to content

Commit

Permalink
Added flag to enable/disable backlight timer
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisys committed Jan 17, 2019
1 parent 742f9d2 commit 0e9983b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scheduler/scripts/start.sh
@@ -1,5 +1,8 @@
#!/bin/bash
(crontab -l; echo "${BACKLIGHT_ON:-0 8 * * *} /usr/src/backlight_on.sh") | crontab -
(crontab -l; echo "${BACKLIGHT_OFF:-0 23 * * *} /usr/src/backlight_off.sh") | crontab -
if [ "$ENABLE_BACKLIGHT_TIMER" -eq "1" ]
then
(crontab -l; echo "${BACKLIGHT_ON:-0 8 * * *} /usr/src/backlight_on.sh") | crontab -
(crontab -l; echo "${BACKLIGHT_OFF:-0 23 * * *} /usr/src/backlight_off.sh") | crontab -
fi

crond -f

0 comments on commit 0e9983b

Please sign in to comment.