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'"
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 ="usb-storage" , \ scsi_disk/ %k/allow_ restart' "
ACTION=="add", \
SUBSYSTEM=="scsi", DRIVER=="sd", \
SUBSYSTEMS=="usb", DRIVERS=
RUN+="/bin/sh -c 'echo 1 >/sys/class/