mirror of
https://codeberg.org/wonky/udev-usb-sync.git
synced 2024-09-19 23:30:37 +02:00
Update 99-usb-sync.rules
This commit is contained in:
parent
541bc1b114
commit
0d6474d234
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# rule to disable write cache for usb storage
|
# rule to disable write cache for usb storage
|
||||||
# requires hdparm to be installed
|
# requires hdparm to be installed
|
||||||
ACTION=="add|change", KERNEL=="sd[a-z]", ENV{ID_USB_TYPE}=="disk", RUN+="[[ $(uname -r | awk -F'.' '{print $1 $2}') < 62 ]] && [[ $(which hdparm) =~ (hdparm) ]] && && /usr/bin/hdparm -W 0 /dev/%K"
|
ACTION=="add|change", KERNEL=="sd[a-z]", ENV{ID_USB_TYPE}=="disk", RUN+="[[ $(uname -r | awk -F'.' '{print $1 $2}') < 62 ]] && [[ $(which hdparm) =~ (hdparm) ]] && /usr/bin/hdparm -W 0 /dev/%K"
|
||||||
#
|
#
|
||||||
# rules to impose buffer limits on USB devices
|
# rules to impose buffer limits on USB devices
|
||||||
# requires kernel > 6.1
|
# requires kernel > 6.1
|
||||||
|
|
Loading…
Reference in a new issue