summaryrefslogtreecommitdiff
path: root/pcr/bbb-gadgets/network-gadget-init.service
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/bbb-gadgets/network-gadget-init.service')
-rw-r--r--pcr/bbb-gadgets/network-gadget-init.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr/bbb-gadgets/network-gadget-init.service b/pcr/bbb-gadgets/network-gadget-init.service
new file mode 100644
index 000000000..47573a1ec
--- /dev/null
+++ b/pcr/bbb-gadgets/network-gadget-init.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Start USB Ethernet gadget
+Conflicts=storage-gadget-init.service
+
+[Service]
+RemainAfterExit=yes
+ExecStart=/usr/bin/g-ether-load.sh
+ExecStop=/usr/bin/rmmod g_ether
+
+[Install]
+WantedBy=basic.target