systemd service
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 8 Oct 2017 18:51:01 +0000 (20:51 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 8 Oct 2017 18:51:01 +0000 (20:51 +0200)
usb-otg.service [new file with mode: 0644]

diff --git a/usb-otg.service b/usb-otg.service
new file mode 100644 (file)
index 0000000..2f68e32
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=USB OTG gadgets
+Documentation=https://github.com/dpavlin/usb-otg
+
+[Service]
+User=root
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/srv/usb-otg/usb-composite-all.sh
+ExecStop=/srv/usb-otg/usb-gadget-stop.sh
+
+[Install]
+WantedBy=multi-user.target