mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
corrects usb0 usb1 usb2 from appearing due to not being unmounted with repeated insert/removal of devices
13 lines
217 B
Django/Jinja
13 lines
217 B
Django/Jinja
[Unit]
|
|
BindTo=%i.device
|
|
After=%i.device
|
|
After=rc-local.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
TimeoutStartSec=0
|
|
Environment=DEVNAME=%I
|
|
ExecStart=/usr/share/usbmount/usbmount add
|
|
ExecStop=/bin/umount /%I
|
|
RemainAfterExit=yes
|
|
|