Skip to content

Instantly share code, notes, and snippets.

@vollkorn1982
Created December 9, 2016 18:03
Show Gist options
  • Save vollkorn1982/b78c3971ddef1b793935ed6482cfa039 to your computer and use it in GitHub Desktop.
Save vollkorn1982/b78c3971ddef1b793935ed6482cfa039 to your computer and use it in GitHub Desktop.
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