Skip to content

Commit 0a39944

Browse files
authored
udev: Only apply hdparm udev rule on ATA devices
fixes #163 Signed-off-by: Bram Oosterlynck <[email protected]>
1 parent 000a8cb commit 0a39944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", \
2-
RUN+="/usr/bin/hdparm -B 254 -S 0 /dev/%k"
2+
ATTRS{id/bus}=="ata", RUN+="/usr/bin/hdparm -B 254 -S 0 /dev/%k"

0 commit comments

Comments
 (0)