ledcontrol: fix typo

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-08 17:10:21 +02:00
parent b6cb610aa0
commit f03eedf4d5

View File

@ -51,7 +51,7 @@ else
device=${devices[$i]}
disk_number=$((i + 1)) # Disknummer für die LED-Steuerung (disk1, disk2, etc.)
smartstatus=$(smartctl -H "/dev/sata$disk_number" | grep "SMART Health Status")
if echo $smartstatus | grep -q "OK"; then
if echo $smartstatus | grep -q 'OK'; then
color="0 255 0" # Grün
else
color="255 0 0" # Rot