summaryrefslogtreecommitdiff
path: root/pcr/bbb-gadgets/network-gadget-init.service
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-10 19:43:14 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-10 19:43:14 +0200
commit9b4fa48711271fd0005ce99553fa0dc25f9f731b (patch)
tree3b93ca56f69e68f9bb374051992067aacdf90a4c /pcr/bbb-gadgets/network-gadget-init.service
parentf6a9602cf6f03ced84cda8257d79a64671c507d0 (diff)
bbb-gadgets
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