script added

This commit is contained in:
Filip Rojek 2022-12-08 17:39:16 +00:00
parent 271e018e88
commit 0414705216
Signed by: fr
GPG Key ID: A56A345EFE321161

24
eduroam.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
# inspired by: https://gist.github.com/AntonFriberg/d1d028c66082889878f1987118a2d251/raw/30b0bad2d133359fadb3f41280094a1c8e26112c/eduroam.sh
read -p "Enter your student_id (ISIC): " user_id
read -sp "Enter your eduroam password: " password
echo ""
sudo nmcli connection add \
type wifi \
con-name "eduroam" \
ifname "wlp7s0" \
ssid "eduroam" \
wifi-sec.key-mgmt "wpa-eap" \
802-1x.identity "$user_id@cuni.cz" \
802-1x.password "$password" \
802-1x.system-ca-certs "yes" \
802-1x.domain-suffix-match "cuni.cz" \
802-1x.eap "peap" \
802-1x.phase2-auth "mschapv2"
sudo nmcli connection up eduroam