#!/bin/sh #bash script for automagic Dynup updating. #written by Ken Rockot #woot. if [ ! $1 ] || [ ! $2 ] then echo "Usage: $0 [interface]" exit fi args="?" if [ $3 ] then ip=`ifconfig $3|grep "inet addr:" | cut -f 2 -d \: | cut -f 1 -d \ ` echo Using interface $3. IP Address: $ip args=$args"ip=$ip&" else echo Attempting to use IP autodetection... fi args=$args"hostname=$1&password=$2" echo Hostname: $1.dynup.net lynx "http://www.dynup.net/update/java.php3$args" -dump