Last active
February 1, 2025 04:19
-
-
Save RichardTMiles/7df2d4eaf4b6e08eda9ac77276f4cfdf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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