Created
September 8, 2014 15:01
-
-
Save DeltaWhy/734a6fb8a0293347244b to your computer and use it in GitHub Desktop.
Wicd GTother login script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Drop in /etc/wicd/scripts/postconnect/ | |
# Chown to root:root and chmod to 700 since it has your password in plaintext | |
connection_type="$1" | |
essid="$2" | |
bssid="$3" | |
if [ "${connection_type}" == "wireless" ]; then | |
if [ "${essid}" == "GTother" ]; then | |
curl -d 'username=[YOUR_USERNAME]' -d 'password=[YOUR_PASSWORD]' https://auth.lawn.gatech.edu/index.php | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment