1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-04-27 20:24:08 +01:00
Files
operating-system/buildroot-external/rootfs-overlay/usr/libexec/hassos-rate
2018-11-29 16:01:16 +00:00

28 lines
340 B
Bash
Executable File

#!/bin/sh
set -e
function mark_good() {
rauc status mark-good
exit 0
}
function mark_bad() {
rauc status mark-bad
systemctl reboot
}
#### Check system ####
# Docker state
if systemctl -q is-failed docker; then
mark_bad
fi
# Docker state
if systemctl -q is-failed hassos-supervisor; then
mark_bad
fi
mark_good