blob: 89f014165e4b709e735eb68399627c05ef90fdf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env bash
#https://github.com/icyphox/bin/blob/master/wpa
case "$1" in
r*)
sudo pkill wpa_supplicant
sudo wpa_supplicant -i wlp3s0 -B -c /etc/wpa_supplicant/wpa_supplicant.conf
;;
n*)
sudo wpa_cli -i wlp3s0 select_network "$2"
;;
l*)
sudo wpa_cli -i wlp3s0 list_networks
;;
*)
sudo wpa_cli -i wlp3s0 "$*"
esac
|