Skip to content

Instantly share code, notes, and snippets.

@dafta
dafta / usb-ether.sh
Last active June 26, 2024 18:49
Steam Deck USB Ethernet
#!/bin/sh
if [ "$UID" -ne 0 ]; then
echo "This script needs to be executed as root"
exit 1
fi
vendor_id="0x3000" # Valve
product_id="0x28DE"
serial_number="$(dmidecode -s system-serial-number)" # The Steam Deck's serial number