Skip to content

Instantly share code, notes, and snippets.

@huan
Last active May 21, 2022 14:01
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huan/d5cdf8ac83784e6384f08773393e6d86 to your computer and use it in GitHub Desktop.
Save huan/d5cdf8ac83784e6384f08773393e6d86 to your computer and use it in GitHub Desktop.
LEDE/OpenWrt Scripts

USB Wifi Stick Driver

opkg install kmod-usb2
opkg install usbutils
lsusb

opkg install luci
opkg install luci-app-sqm

opkg install $driver
Driver Usb Wifi Stick - lsusb
kmod-ath9k-htc Bus 001 Device 004: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
N/A Bus 001 Device 006: ID 148f:761a Ralink Technology, Corp.
kmod-rtl8xxxu, kmod-rtl8192cu Bus 001 Device 007: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
kmod-net-rtl8192su Bus 001 Device 007: ID 0bda:8171 Realtek Semiconductor Corp. RTL8188SU 802.11n WLAN Adapter

Wifi Connect

cat > /tmp/wpa_supplicant.conf <<_CONF_
network={
    ssid="ssid_name"
    psk="password"
}
_CONF_

wpa_supplicant -i wlan0 -c /tmp/wpa_supplicant.conf
udhcpc -i wlan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment