You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
275 B
14 lines
275 B
3 years ago
|
#!/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
|