A live bird collage card for your Home Assistant dashboard.
fix: active (mounted) is the correct status for the ram drive mount
frederik922f84e8faa7
diff --git a/scripts/service_controls.php b/scripts/service_controls.phpindex 506eb3a8..b1940597 100644--- a/scripts/service_controls.php+++ b/scripts/service_controls.php@@ -15,7 +15,7 @@ function service_status($name) {}}$op = shell_exec("sudo systemctl status ".$name." | grep Active");- if (stripos($op, " active (running)")) {+ if (stripos($op, " active (running)") || stripos($op, " active (mounted)")) {echo "<span style='color:green'>(active)</span>";} elseif (stripos($op, " inactive ")) {echo "<span style='color:#fc6603'>(inactive)</span>";