Simple autoflasher for Win/cygwin

This commit is contained in:
Stefan `Sec` Zehl 2011-05-22 21:09:02 +02:00
parent f3b14ba4de
commit af0d1e8bf2
1 changed files with 15 additions and 0 deletions

15
tools/autoflash-cygwin.sh Normal file
View File

@ -0,0 +1,15 @@
drive=/cygdrive/f
file=$drive/firmware.bin
while : ; do
while [ ! -f $file ] ; do
sleep 1
done
cp firmware.bin $file
echo -n '<Flashed>'
echo -n '<Flashed>'|sed 's/.//g';
while [ -f $file ] ; do
sleep 1
done
done