daily autocommit
parent
5428fbcc42
commit
ff24da593a
@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Mount USB Drive on %i
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=true
|
||||||
|
ExecStart=/usr/local/bin/usb-mount.sh add %i
|
||||||
|
ExecStop=/usr/local/bin/usb-mount.sh remove %i
|
@ -0,0 +1,3 @@
|
|||||||
|
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"
|
Loading…
Reference in New Issue