Skip to content

Instantly share code, notes, and snippets.

@alexanderadam
Forked from TimKraemer/wifionice
Created March 30, 2018 06:25
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 alexanderadam/607f78bcc133338c2d7d09d40181b8af to your computer and use it in GitHub Desktop.
Save alexanderadam/607f78bcc133338c2d7d09d40181b8af 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 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