6 lines
253 B
Text
6 lines
253 B
Text
|
|
||
|
# 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"
|