Comment 3 for bug 193154

Revision history for this message
Jonathan Rascher (bcat) wrote :

Oops, I typo'd the udev rule in my last comment. It is missing a comma. Oddly enough, udev appears to parse it just fine, but I doubt you'll want to rely on that.

Here's the correct version:

# Set the allow_restart flag for all USB mass storage devices
ACTION=="add", \
SUBSYSTEM=="scsi", DRIVER=="sd", \
SUBSYSTEMS=="usb", DRIVERS=="usb-storage", \
RUN+="/bin/sh -c 'echo 1 >/sys/class/scsi_disk/%k/allow_restart'"