Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HowTo auto connect your Linux to the German Wifi on ICE trains
#!/bin/sh
# put this file in /etc/network/if-up.d/
if iwconfig wlp3s0 | 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