Last active
September 3, 2019 09:43
-
-
Save martinbeentjes/27e3562f3663556409bbb54d2e0a620a to your computer and use it in GitHub Desktop.
Enabling Wi-Fi eduroam on embedded hardware for InHolland locations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="[email protected]" | |
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