-
-
Save alexanderadam/607f78bcc133338c2d7d09d40181b8af to your computer and use it in GitHub Desktop.
HowTo auto connect your Linux to the German Wifi on ICE trains
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/sh | |
# put this file in /etc/network/if-up.d/ | |
if iwconfig wlp4s0 | grep -c "ESSID:\"WIFIonICE\"" | |
then | |
curl -s "https://www.ombord.info/hotspot/hotspot.cgi?connect=&method=login&realm=db_advanced_wifi" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment