New supervisor / Adjust rauc handling (#530)
* OS: Update supervisor 194 * Remove old rauc mark code * OS: Update supervisor 195 * Adjust dockerd
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
# shellcheck disable=SC2112
|
||||
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
|
||||
Reference in New Issue
Block a user