add eduroam connection script

This commit is contained in:
Felix Van der Jeugt 2021-09-08 09:58:36 +02:00
parent 6371fccf33
commit 5ddd6b0195
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 18 additions and 0 deletions

18
local/bin/eduroam Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
sudo sv stop iwd
conf="$(mktemp)"
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"