summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gsj/recipes-phosphor/usb-network/files/usb_network.sh
diff options
context:
space:
mode:
authorBenjamin Fair <benjaminfair@google.com>2019-04-12 00:18:32 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-04-16 20:09:37 +0300
commit9729b8223b418aca8e46b8301459e423cf2eabbd (patch)
tree2740dacc4e06be689ceb5b31bf3fe0e74a706fe1 /meta-quanta/meta-gsj/recipes-phosphor/usb-network/files/usb_network.sh
parent299b3cd91320b47203f662428b28d60d94c5067b (diff)
downloadopenbmc-9729b8223b418aca8e46b8301459e423cf2eabbd.tar.xz
meta-quanta: gsj: move non-phosphor recipes out of recipes-phosphor
The usb-network and quanta-nvme-powerctrl recipes aren't part of phosphor, so move them to the machine-spceific recipes-gsj folder instead. (From meta-quanta rev: a5787aa49f88aac01eed521e1b3e8f85b73f5c54) Change-Id: I22b68e1e83dbd0ee3f98288052ffb302b7ef1ff5 Signed-off-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-quanta/meta-gsj/recipes-phosphor/usb-network/files/usb_network.sh')
-rw-r--r--meta-quanta/meta-gsj/recipes-phosphor/usb-network/files/usb_network.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/meta-quanta/meta-gsj/recipes-phosphor/usb-network/files/usb_network.sh b/meta-quanta/meta-gsj/recipes-phosphor/usb-network/files/usb_network.sh
deleted file mode 100644
index 45fa888be..000000000
--- a/meta-quanta/meta-gsj/recipes-phosphor/usb-network/files/usb_network.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-cd /sys/kernel/config/usb_gadget
-
-if [ ! -f "g1" ]; then
- mkdir g1
- cd g1
-
- echo 0x1d6b > idVendor # Linux foundation
- echo 0x0104 > idProduct # Multifunction composite gadget
- mkdir -p strings/0x409
- echo "Linux" > strings/0x409/manufacturer
- echo "Ethernet/RNDIS gadget" > strings/0x409/product
-
- mkdir -p configs/c.1
- echo 100 > configs/c.1/MaxPower
- mkdir -p configs/c.1/strings/0x409
- echo "RNDIS" > configs/c.1/strings/0x409/configuration
-
- mkdir -p functions/rndis.usb0
-
- ln -s functions/rndis.usb0 configs/c.1
-
- echo f0839000.udc > UDC
-
-fi
-exit 0