From 39d79fcc7ffecf53a524098f189d65f381e3edeb Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 8 Oct 2017 20:51:01 +0200 Subject: [PATCH] systemd service --- usb-otg.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 usb-otg.service diff --git a/usb-otg.service b/usb-otg.service new file mode 100644 index 0000000..2f68e32 --- /dev/null +++ b/usb-otg.service @@ -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 -- 2.20.1