Sudo wpa_supplicant -c /etc/wpa_supplicant/wpa_nf -i wlan1 Wpa_passphrase "mynetwork" "password" | sudo tee /etc/wpa_supplicant/wpa_nf Sudo wpa_supplicant -c /etc/wpa_nf - wlan1 If grep -q "mynetwork" "/etc/wpa_supplicant/wpa_nf" then 120Įcho "Please provide a network you would like to connect too" I then added a delay to the script, giving the PI time to bootup before executing the connection commands. I added it to rc.local to run at boot and it didn't work. I thought maybe this would be the solution. I can start the script and wlan1 connects to thee wifi. If I run it manually after a boot, it works as expected. I tried writing a script that manually connects wlan1 to my network. If I tell wlan0 to forget the wifi network it deletes the network from wpa_nf. If I update wpa_nf by adding the SSID and key, then wlan0 connects to the network automatically at boot, not wlan1. The problem is I have to go to the pi and manually configure wlan1 (aka: wifi adapter) to connect to the network after a reboot. I had to purchase a wifi adapter because the current wifi adapter wasn't strong enough. I have a pi at a remote location to which I VNC or SSH into regularly.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |