mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 13:10:30 -04:00
16 lines
342 B
Bash
16 lines
342 B
Bash
#!/command/with-contenv bashio
|
|
# -*- bash -*-
|
|
# shellcheck shell=bash
|
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
|
case "${1}" in
|
|
1)
|
|
bashio::log.error "TeslaMate encountered an error, halting add-on"
|
|
;;
|
|
*)
|
|
bashio::log.error "TeslaMate crashed, halting add-on"
|
|
;;
|
|
esac
|
|
/run/s6/basedir/bin/halt
|
|
fi
|
|
|