diff options
Diffstat (limited to 'meta-bytedance/recipes-bytedance/usb-network/files')
-rw-r--r-- | meta-bytedance/recipes-bytedance/usb-network/files/00-bmc-usb0.network | 7 | ||||
-rw-r--r-- | meta-bytedance/recipes-bytedance/usb-network/files/usb_network.service | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-bytedance/recipes-bytedance/usb-network/files/00-bmc-usb0.network b/meta-bytedance/recipes-bytedance/usb-network/files/00-bmc-usb0.network new file mode 100644 index 000000000..834100329 --- /dev/null +++ b/meta-bytedance/recipes-bytedance/usb-network/files/00-bmc-usb0.network @@ -0,0 +1,7 @@ +[Match] +Name=usb0 +[Address] +Address=169.254.100.100/16 +[Network] +LinkLocalAddressing=no +IPv6AcceptRA=no 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 |