ledcontrol: only grep disks, not partitions

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-08 16:36:33 +02:00
parent d91ea2d86c
commit ad97a31097

View File

@ -42,7 +42,7 @@ else
fi
# Disks
devices=($(ls -d /dev/sata*[1-9] 2>/dev/null))
devices=($(ls -d /dev/sata*[1-9] 2>/dev/null | grep -v 'p'))
for i in "${!devices[@]}"; do
# [ "${devices[$i]}" = "/dev/${bootdisk}" ] && continue
device=${devices[$i]}