Created
November 2, 2015 22:21
-
-
Save jpetazzo/54695d772bf261b6ccf0 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 | |
SSID=$1 | |
PSK=$2 | |
nmcli con add con-name "w-$SSID" ifname wlan0 type wifi ssid "$SSID" | |
nmcli con mod "w-$SSID" wifi-sec.key-mgmt wpa-psk | |
nmcli con mod "w-$SSID" wifi-sec.psk "$2" | |
nmcli con up "w-$SSID" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment