mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
fix state detection
This commit is contained in:
parent
1b5ce03dd2
commit
d3f07536f1
1 changed files with 5 additions and 4 deletions
|
@ -20,7 +20,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /home/admin/raspiblitz.info
|
||||||
|
|
||||||
# switch on
|
# switch on
|
||||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
|
@ -134,10 +134,11 @@ EOF
|
||||||
if [ "${state}" == "ready" ]; then
|
if [ "${state}" == "ready" ]; then
|
||||||
echo "# starting kindle-display service"
|
echo "# starting kindle-display service"
|
||||||
sudo systemctl start kindle-display
|
sudo systemctl start kindle-display
|
||||||
fi
|
|
||||||
|
|
||||||
# generate initial screenshot
|
# generate initial screenshot
|
||||||
|
echo "# run cronfile"
|
||||||
sudo -u $USERNAME $CRON_FILE
|
sudo -u $USERNAME $CRON_FILE
|
||||||
|
fi
|
||||||
|
|
||||||
echo "OK - the KINDLE-DISPLAY script is now installed."
|
echo "OK - the KINDLE-DISPLAY script is now installed."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue