From 2896c538001c589e5b82295316661ac8856d72ed Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sun, 6 May 2012 15:04:17 +0200 Subject: [PATCH] Fix smartflash flash script so it forks again... --- tools/smartflash/flash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/smartflash/flash b/tools/smartflash/flash index 4e09e00..9829156 100755 --- a/tools/smartflash/flash +++ b/tools/smartflash/flash @@ -1,9 +1,12 @@ #!/bin/sh -bin=frimware.bin +bin=firmware.bin if [ ! -z "$3" ] ; then bin=$3 fi -dd if=$3 seek=4 of=/dev/$1 2>/dev/null +dd if=$bin seek=4 of=/dev/$1 2>/dev/null +if [ $? != 0 ] ; then + echo "Flash failed: $1 @ $2" +fi if [ -z "$3" ] ; then echo "FLASH done: $1 @ $2" else