2018-02-14 23:49:53 +00:00
|
|
|
[Unit]
|
|
|
|
BindTo=%i.device
|
|
|
|
After=%i.device
|
2025-01-23 21:36:19 +00:00
|
|
|
After=systemd-udev-trigger.service
|
2025-01-25 23:17:04 +00:00
|
|
|
ConditionPathExists=/var/run
|
2018-02-14 23:49:53 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-04-07 16:52:05 +00:00
|
|
|
#Type=oneshot
|
2018-02-14 23:49:53 +00:00
|
|
|
TimeoutStartSec=0
|
|
|
|
Environment=DEVNAME=%I
|
2025-01-25 23:05:03 +00:00
|
|
|
ExecStart=/usr/local/sbin/usbmount add
|
|
|
|
ExecStop=/usr/local/sbin/iiab-clean-usb.sh %I
|
2020-04-07 16:52:05 +00:00
|
|
|
ExecStopPost=/bin/umount /%I
|
2018-02-14 23:49:53 +00:00
|
|
|
RemainAfterExit=yes
|
2025-01-26 14:34:46 +00:00
|
|
|
RuntimeDirectory=usbmount
|