Skip to content

Instantly share code, notes, and snippets.

@RichardTMiles
Last active February 1, 2025 04:19
Show Gist options
  • Save RichardTMiles/7df2d4eaf4b6e08eda9ac77276f4cfdf to your computer and use it in GitHub Desktop.
Save RichardTMiles/7df2d4eaf4b6e08eda9ac77276f4cfdf to your computer and use it in GitHub Desktop.
#!/bin/sh
apk update
apk add wpa_supplicant iw dhcpcd
ip link
ip link set wlan0 up
iw dev wlan0 scan | grep SSID
wpa_passphrase "YourSSID" "YourPassword" > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
dhcpcd wlan0
# test with google dns
ping -c 5 8.8.8.8
# get local ipv6
pi -6 a show wlan0
# get local ipv4
pi -4 a show wlan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment