configuration/local/bin/eduroam

20 lines
336 B
Plaintext
Raw Normal View History

2021-09-08 09:58:36 +02:00
#!/bin/sh
sudo sv stop iwd
conf="$(mktemp)"
2021-10-11 09:46:37 +02:00
trap "rm '$conf'" EXIT QUIT
2021-09-08 09:58:36 +02:00
cat > "$conf" <<HERE
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
network={
ssid="eduroam"
key_mgmt=WPA-EAP
auth_alg=OPEN
eap=PEAP
identity="fvdrjeug@ugent.be"
password="$(pass show ugent/_ | head -1)"
}
HERE
sudo wpa_supplicant -iwlp58s0 -c"$conf"