Skip to content

Instantly share code, notes, and snippets.

@TimKraemer
Forked from vollkorn1982/wifionice
Last active May 3, 2023 15:46
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save TimKraemer/512e8a73dcbf34d57ba19824ef199d57 to your computer and use it in GitHub Desktop.
Save TimKraemer/512e8a73dcbf34d57ba19824ef199d57 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
@Beta-Alf
Copy link

Thank you very much, I have been struggling with the right URL since it always redirects me to inexistend stuff, but this worked.

@aduewel
Copy link

aduewel commented Sep 28, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment