Loading Documents/train-wifi.sh 0 → 100755 +14 −0 Original line number Diff line number Diff line #!/bin/sh set -eu # Logs in to the Israeli train's wifi. # To install run: # sudo cp --preserve=mode "$HOME/Documents/train-wifi.sh" "/etc/NetworkManager/dispatcher.d/90trainwifi" interface="$1" status="$2" if [ "$interface" = "ISRAEL-RAILWAYS" ] && [ "$status" = "up" ] then curl http://10.5.4.1/loginHandler.php?allowAccess=true fi Loading
Documents/train-wifi.sh 0 → 100755 +14 −0 Original line number Diff line number Diff line #!/bin/sh set -eu # Logs in to the Israeli train's wifi. # To install run: # sudo cp --preserve=mode "$HOME/Documents/train-wifi.sh" "/etc/NetworkManager/dispatcher.d/90trainwifi" interface="$1" status="$2" if [ "$interface" = "ISRAEL-RAILWAYS" ] && [ "$status" = "up" ] then curl http://10.5.4.1/loginHandler.php?allowAccess=true fi