projects
/
tpope-extra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d3296d
)
Laid claims on email address
author
Tim Pope
<code@tpope.net>
Thu, 22 Jul 2004 02:05:57 +0000
(
02:05
+0000)
committer
Tim Pope
<code@tpope.net>
Thu, 22 Jul 2004 02:05:57 +0000
(
02:05
+0000)
if-up.d/bluesocket
patch
|
blob
|
history
diff --git
a/if-up.d/bluesocket
b/if-up.d/bluesocket
index 0710330c0631af75cf755e748873eac31942692e..d619556f3edb4f084f7226aaca1b9c4971ad5494 100755
(executable)
--- a/
if-up.d/bluesocket
+++ b/
if-up.d/bluesocket
@@
-4,8
+4,10
@@
# This particular version is tailored for my college, and only launches if
# the local ip address is on the subnet used there.
# 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"
+# PLEASE CHANGE EMAIL ADDRESS BEFORE USING!
+[ "`hostname`" != lisa ] || email="nvcwireless%40rebelongto.us"
+#email=your-email-address-here
if [ -z "${1:-$IFACE}" ] || /sbin/ifconfig "${1:-$IFACE}"|grep -qs 'inet addr:10\.0\.1[45]'; then
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
+ /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=
`echo $email|sed -e 's/@/%40/'`
" >/dev/null 2>&1
fi
fi