add readme instructions

This commit is contained in:
Tyler Bean 2018-10-16 00:45:03 -05:00
parent 5017768f17
commit 7e400aa954
1 changed files with 21 additions and 1 deletions

View File

@ -1,2 +1,22 @@
# shellscripts
# Wireless Login Assistant
Currently at our hotel, we're required to login to the wireless portal once per 24 hour period
In order for our network to work correctly, I have the WAN port of our gateway connected
to an ASUS consumer-grade router in wireless repeater mode, connected to the hotel wireless
network.
This script will basically do the following:
* Reboot the router (this is basically to buy time. If duplicate MACs are present, blockage)
* Bring down the @Wireless connection
* Assign the MAC address from the ASUS router 2.4ghz radio to local wifi adapter
* Bring up wireless on ESAconnect network
* Curl two endpoints to simulate logging in
* Bring down ESAconnect
* Bring up @Wireless
This happens once per 24 hours, controlled by systemd timers.
Backup of ASUS router config stored in the git as well, in case it gets hacked (not super secure)