Simple autoflasher for Win/cygwin
This commit is contained in:
parent
f3b14ba4de
commit
af0d1e8bf2
1 changed files with 15 additions and 0 deletions
15
tools/autoflash-cygwin.sh
Normal file
15
tools/autoflash-cygwin.sh
Normal 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
|
||||
|
Loading…
Reference in a new issue