Skip to content
This repository has been archived by the owner on May 18, 2018. It is now read-only.

Commit

Permalink
simplify script
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue-Speed committed Aug 31, 2015
1 parent e797e35 commit eaf61db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wirelessauth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

IF=$1
STATUS=$2
ROUTER=127.0.0.1 #IP of router
ROUTER=127.0.0.1 #IP of gateway
DEFROUTE=`netstat -rn | awk '/^0.0.0.0/ { print $2 }'`
AP="00:00:00:00:00:00" #MAC address of Access point
#`arp -ni wlan0 | awk '/'${ROUTER}'/ {print $3}'`
USER=""
PASS=""
SWITCHURL="https://localhost/" #URL to call to retrieve login screen
GETDATA="switch_url=${SWITCHURL}&ap_mac=${AP}" #Data to send to Switch URL
POSTDATA="username=${USER}&password=${PASS}" #Data to send to post URL
POSTURL="https://localhost/" #URL to send login data too

Expand Down

0 comments on commit eaf61db

Please sign in to comment.