From 35c07ede4943e7a3fe684f7291c946286194c837 Mon Sep 17 00:00:00 2001 From: Tait Hoyem Date: Fri, 20 Aug 2021 15:28:59 -0600 Subject: [PATCH] Wireless script --- wconn/wconn | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 wconn/wconn diff --git a/wconn/wconn b/wconn/wconn new file mode 100755 index 0000000..5de197f --- /dev/null +++ b/wconn/wconn @@ -0,0 +1,13 @@ +#!/bin/bash +echo -n "SSID: " +read -r ssid +echo -n "Password (if any): " +read -r password +echo -n "Name (for future use): " +read -r name + +if [ -n password ]; then + nmcli dev wifi con "$ssid" password "$password" name "$name" +else + nmcli dev wifi con "$ssid" name "$name" +fi