mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-30 12:36:07 +02:00
fix state detection
This commit is contained in:
parent
1b5ce03dd2
commit
d3f07536f1
@ -20,7 +20,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
source /home/admin/raspiblitz.info
|
||||
|
||||
# switch on
|
||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
@ -134,10 +134,11 @@ EOF
|
||||
if [ "${state}" == "ready" ]; then
|
||||
echo "# starting kindle-display service"
|
||||
sudo systemctl start kindle-display
|
||||
fi
|
||||
|
||||
# generate initial screenshot
|
||||
sudo -u $USERNAME $CRON_FILE
|
||||
# generate initial screenshot
|
||||
echo "# run cronfile"
|
||||
sudo -u $USERNAME $CRON_FILE
|
||||
fi
|
||||
|
||||
echo "OK - the KINDLE-DISPLAY script is now installed."
|
||||
echo ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user