summaryrefslogtreecommitdiff
path: root/meta-bytedance/recipes-bytedance/usb-network/files/usb_network.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-bytedance/recipes-bytedance/usb-network/files/usb_network.service')
-rw-r--r--meta-bytedance/recipes-bytedance/usb-network/files/usb_network.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-bytedance/recipes-bytedance/usb-network/files/usb_network.service b/meta-bytedance/recipes-bytedance/usb-network/files/usb_network.service
new file mode 100644
index 000000000..bb20acdbf
--- /dev/null
+++ b/meta-bytedance/recipes-bytedance/usb-network/files/usb_network.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Enable usb network
+After=phosphor-ipmi-host.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/usb-ctrl ecm usbeth0 on
+ExecStop=/usr/bin/usb-ctrl ecm usbeth0 off
+
+[Install]
+WantedBy=multi-user.target