fix: active (mounted) is the correct status for the ram drive mount

This commit is contained in:
frederik
2025-03-23 09:44:43 +01:00
parent f33a9d24a7
commit 922f84e8fa
+1 -1
View File
@@ -15,7 +15,7 @@ function service_status($name) {
} }
} }
$op = shell_exec("sudo systemctl status ".$name." | grep Active"); $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>"; echo "<span style='color:green'>(active)</span>";
} elseif (stripos($op, " inactive ")) { } elseif (stripos($op, " inactive ")) {
echo "<span style='color:#fc6603'>(inactive)</span>"; echo "<span style='color:#fc6603'>(inactive)</span>";