Skip to content

Instantly share code, notes, and snippets.

@martinbeentjes
Last active September 3, 2019 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinbeentjes/27e3562f3663556409bbb54d2e0a620a to your computer and use it in GitHub Desktop.
Save martinbeentjes/27e3562f3663556409bbb54d2e0a620a to your computer and use it in GitHub Desktop.
Enabling Wi-Fi eduroam on embedded hardware for InHolland locations
#!/bin/bash
iface=wlan0
# This script applies WPA configuration so that eduroam can be accessed via a Raspberry Pi.
if [ "$(id -u)" != "0" ]; then
echo " This script must be run as root" 1 >&2
exit 1
else
killall wpa_supplicant
ifconfig $iface down
iwconfig $iface mode Managed
ifconfig $iface up
wpa_supplicant -B -Dwext -i $iface -c /etc/wpa_supplicant/wireless_wpa_eduroam.conf
dhclient $iface
fi
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="eduroam"
scan_ssid=0
key_mgmt=WPA-EAP
pairwise=CCMP TKIP
eap=PEAP
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
identity="STUDENTNR@student.inholland.nl"
password="PASSWORD"
subject_match="CN=radius.inholland.nl"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment