From 6f93a3e54ad8fd102df00176e756169f3cfa0fba Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 20 Jul 2004 21:24:09 +0000 Subject: [PATCH] Added bluesocket script --- if-up.d/bluesocket | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 if-up.d/bluesocket diff --git a/if-up.d/bluesocket b/if-up.d/bluesocket new file mode 100755 index 0000000..0710330 --- /dev/null +++ b/if-up.d/bluesocket @@ -0,0 +1,11 @@ +#!/bin/sh +# Author: Tim Pope +# Automatically logs in as a guest to bluesocket for wireless network access. +# This particular version is tailored for my college, and only launches if +# the local ip address is on the subnet used there. + +email="nvcwireless%40rebelongto.us" + +if [ -z "${1:-$IFACE}" ] || /sbin/ifconfig "${1:-$IFACE}"|grep -qs 'inet addr:10\.0\.1[45]'; then + /usr/bin/curl -k 'https://10.12.0.210/login.pl' --data '_FORM_SUBMIT=1' --data 'which_form=guest' --data 'destination=http%3A//www.google.com/' --data 'source=10.12.0.240' --data "bs_email=$email" >/dev/null 2>&1 +fi -- 2.30.2