mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
hdparm: stop trying set speed on invalid optical devices
This commit is contained in:
parent
fffd87426c
commit
84c946dec4
@ -19,6 +19,9 @@
|
||||
# only do anything on block devices which are not removed
|
||||
ACTION!="add|change", GOTO="cdrom_end"
|
||||
|
||||
# /dev/sr, /dev/sr_mod, /dev/srcutree are not valid
|
||||
KERNEL=="sr|sr_mod|srcutree", GOTO="cdrom_end"
|
||||
|
||||
# set CDROM speed
|
||||
KERNEL=="sr*", RUN+="/sbin/hdparm -E8 /dev/%k"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user