Created
March 23, 2017 20:27
-
-
Save NobodyNada/63d2e49ffde67749c795190bfdb598bd to your computer and use it in GitHub Desktop.
Bash script to automatically reboot FireAlarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function line() { | |
echo "-----------------------------------------------------" | |
} | |
ulimit -c unlimited | |
printf "\n\n" | |
line | |
echo "Starting FireAlarm..." | |
line | |
#export DEVELOPMENT=123602 | |
export ChatBotEmail="<email>" | |
export ChatBotPass="<password>" | |
until ~/.firealarm/FireAlarm && [ ! -f ~/.firealarm/version-new.txt ]; do | |
line | |
echo "FireAlarm died; rebooting in 3 seconds..." | |
line | |
sleep 3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment