Skip to content

Instantly share code, notes, and snippets.

@DeltaWhy
Created September 8, 2014 15:01
Show Gist options
  • Save DeltaWhy/734a6fb8a0293347244b to your computer and use it in GitHub Desktop.
Save DeltaWhy/734a6fb8a0293347244b to your computer and use it in GitHub Desktop.
Wicd GTother login script
#!/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