ksh, git, vim, set_time
[dotfiles_afify.git] / .scripts / wpa_add.sh
blob1ec2cbc995abb58e0b5a12b37705efe36c643f85
1 #!/bin/sh
3 wifi=$(ifconfig | awk '/wlp/ {print $1}' | tr -d ':')
4 ssid=$1
5 pass=$2
7 wpa_passphrase $ssid $pass >> /etc/wpa_supplicant/wpa_supplicant-$wifi.conf
9 wpa_cli -i wlp62s0 reconfigure
10 sv restart dhcpcd
12 # doas wpa_supplicant -B -i wlp62s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp62s0.conf && doas dhcpcd wlp62s0