Skip to content

Instantly share code, notes, and snippets.

@NobodyNada
Created March 23, 2017 20:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NobodyNada/63d2e49ffde67749c795190bfdb598bd to your computer and use it in GitHub Desktop.
Save NobodyNada/63d2e49ffde67749c795190bfdb598bd to your computer and use it in GitHub Desktop.
Bash script to automatically reboot FireAlarm
#!/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