check-seheiahd-status.sh adapted