mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
ledcontrol: only grep disks, not partitions
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
d91ea2d86c
commit
ad97a31097
@ -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]}
|
||||
|
Loading…
Reference in New Issue
Block a user