CasaOS/shell/11-usb-mount.rules

6 lines
253 B
Text
Raw Normal View History

2021-09-26 02:35:02 +00:00
# copy to /etc/udev/rules.d path
KERNEL=="sd[a-z]*[0-9]", SUBSYSTEMS=="usb", ACTION=="add", RUN+="/bin/systemctl start usb-mount@%k.service"
KERNEL=="sd[a-z]*[0-9]", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/systemctl stop usb-mount@%k.service"