Files
operating-system/buildroot-external/rootfs-overlay/usr/sbin/hassos-rate
2018-06-16 22:24:36 +02:00

28 lines
344 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-active docker; then
mark_bad
fi
# Docker state
if ! systemctl -q is-active hassos-supervisor; then
mark_bad
fi
mark_good