Double oops. It turns out that the last udev rule I posted doesn't always work. I can't figure out why that is, but here's a simpler rule that seems to work all of the time.
# Set the allow_restart flag for all SCSI disks.
ACTION=="add", \
SUBSYSTEM=="scsi_disk", \
ATTR{allow_restart}="1"
(Note that this sets allow_restart for all scsi_disk devices, not just those created by the usb-storage driver. I don't think that's a problem, though.)
Double oops. It turns out that the last udev rule I posted doesn't always work. I can't figure out why that is, but here's a simpler rule that seems to work all of the time.
# Set the allow_restart flag for all SCSI disks. ="scsi_ disk", \ restart} ="1"
ACTION=="add", \
SUBSYSTEM=
ATTR{allow_
(Note that this sets allow_restart for all scsi_disk devices, not just those created by the usb-storage driver. I don't think that's a problem, though.)