Commit 8f0510bd authored by nimrod's avatar nimrod
Browse files

- Added login script to the Israeli train's wifi, intructions in the file.

parent e71a2950
Loading
Loading
Loading
Loading
+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