Change rauc mark handling
This commit is contained in:
26
buildroot-external/rootfs-overlay/usr/sbin/hassos-rate
Executable file
26
buildroot-external/rootfs-overlay/usr/sbin/hassos-rate
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
|
||||
function mark_good() {
|
||||
rauc status mark-good
|
||||
exit 0
|
||||
}
|
||||
|
||||
function mark_bad() {
|
||||
rauc status mark-bad
|
||||
exit 0
|
||||
}
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user