Topic: Flash script

I have been flashing soo often these past few days (some problems :-) ) that I decided to write a simple flash script.

It's dead simple, but I though I'd post it anyways...

#!/bin/bash

if [ -z "$1" ]; then
    echo gimme a f*cking file!!!!!
    exit 1
fi
if [ -z "$2" ]; then
    IP=192.168.1.1
else
    IP=$2
fi

echo "connect $IP
verbose
binary
trace
rexmt 1
status
put $1 xxx" | linksys-tftp

This one uses linksys-tftp, but you can edit it for any tftpclient normally...

Have fun :-)