From 85fd184aa461845a17fb10564cadc5635b3453da Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 26 Feb 2017 08:45:08 +0200 Subject: [PATCH] - Added login script to the Israeli train's wifi, intructions in the file. --- Documents/train-wifi.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 Documents/train-wifi.sh diff --git a/Documents/train-wifi.sh b/Documents/train-wifi.sh new file mode 100755 index 0000000..49aa1f1 --- /dev/null +++ b/Documents/train-wifi.sh @@ -0,0 +1,14 @@ +#!/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 -- GitLab