[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Privacy vs vendor support



On Wed, 2 Jul 2003, Eric Harrison wrote:

> Ok, I crank out some same code to see if it works as well in practice
> as it does in theory...

#!/bin/sh
#
#	Check-in, but respect privacy
#
#	GPL v 2.0 or later
#	info owlriver com
#
#	usage: ln -s /usr/local/bin/checkin /etc/cron.monthly/
#
SALT="all good things"
#
#
CHECKIN="http://www.somewhere.org/?MACSUM=";
GWDEV=`route -n | awk {'print $8'} | tail -1 `
GWSUM=`echo "$SALT" ; ifconfig $GWDEV | awk  {'print $5'} | \
	head -1 ) | md5sum  - | awk {'print $1'} `
TERM="linux"
export TERM
[ -x /usr/bin/wget ] && \
	wget -O /dev/null "${CHECKIN}$GWSUM" &
exit 0


-----------------------------

I use a variant all the time.

-- Russ Herrold




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]