Hi all,

I mentioned in our last meeting that on new versions of the RPI, putting
your WiFi networks into 'etc/wpa_supplicant/wpa_supplicant.conf' no longer
works.
I've written this script that may be useful. Just make sure nmcli is
installed on your RPI.

#!/usr/bin/bash
#
# Add WiFi networks
#
# The commands below will give you a list of all currently active networks.
# You'll need to do a CTRL-C to get out of it. I couldn't put it in this
script.
#
# $ sudo nmcli dev wifi rescan
# $ nmcli dev wifi list
#
# To remove a network:
# $ sudo nmcli connection delete "<SSID>"
#
MSG="Below are the currently configured networks.\n"

if [ "$1" = "" ] || [ "$2" = "" ]; then
    printf "SSID Name and password are needed to configure a network.\n"
    printf "$MSG"
    nmcli connection show
    exit 1
fi

sudo nmcli connection add type wifi con-name "$1" ssid "$1" \
     wifi-sec.key-mgmt wpa-psk wifi-sec.psk "$2" connection.autoconnect yes

printf "$MSG"
nmcli connection show
exit 0

If you don't pass in the SSID and password, the script will tell you what
networks are currently configured.
There is also, in the comments, a command to delete a network you no longer
want.

Let me know if you have any issues.

~Carl

On Wed, May 6, 2026 at 9:00 PM The MacDougals via TriEmbed <
[email protected]> wrote:

> We will have our normal monthly meeting on Monday 5/11/26 at 7:00 pm
>
> Agenda:
> - Welcome
> - Announcements
> - P.O.T.M. (Problem Of The Month)
> - Show and Tell and discussion
>
> The plan for this month is to meet in person at:
> The Forge Initiative
> 1012 Investment Blvd, Suite 101
> Apex, NC 27502
> As well as being at the Forge the meeting will also be online at the usual
> Jitsi URL:
> https://meet.jit.si/TriEmbed
> The meeting will be recorded, A/V gods willing!
>
> ---> Paul
>
>
> _______________________________________________
> Triangle, NC Embedded Interest Group mailing list
>
> To post message: [email protected]
> List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> TriEmbed web site: https://TriEmbed.org
> To unsubscribe, click link and send a blank message: mailto:
> [email protected]?subject=unsubscribe
> Searchable email archive available at
> https://www.mail-archive.com/[email protected]/
>
>

-- 
--------------------------------------------------------------
Carl J. Nobile (Software Engineer/API Design)
[email protected]
--------------------------------------------------------------
_______________________________________________
Triangle, NC Embedded Interest Group mailing list

To post message: [email protected]
List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: https://TriEmbed.org
To unsubscribe, click link and send a blank message: 
mailto:[email protected]?subject=unsubscribe
Searchable email archive available at 
https://www.mail-archive.com/[email protected]/

Reply via email to