From af0d1e8bf23733dc7e3ac7e95540dff9d51e38bb Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sun, 22 May 2011 21:09:02 +0200 Subject: [PATCH] Simple autoflasher for Win/cygwin --- tools/autoflash-cygwin.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/autoflash-cygwin.sh diff --git a/tools/autoflash-cygwin.sh b/tools/autoflash-cygwin.sh new file mode 100644 index 0000000..ee86308 --- /dev/null +++ b/tools/autoflash-cygwin.sh @@ -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 '' + echo -n ''|sed 's/.//g'; + while [ -f $file ] ; do + sleep 1 + done +done +