vim, gitconfig, update.sh
[dotfiles_afify.git] / .scripts / wpa_add.sh
blob674647fd7a2dbf57c59e3dda1feb69a6c6a767f2
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 # doas wpa_supplicant -B -i wlp62s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp62s0.conf && doas dhcpcd wlp62s0