Skip to content

Instantly share code, notes, and snippets.

@vollkorn1982
vollkorn1982 / wifionice
Created December 9, 2016 18:03
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
### Keybase proof
I hereby claim:
* I am vollkorn1982 on github.
* I am vollkorn (https://keybase.io/vollkorn) on keybase.
* I have a public key whose fingerprint is 808A 46AB 2D8E 122A C335 8696 D373 0FB3 2478 3220
To claim this, I am signing this object: