Permalink
Browse files

Merge branch 'master' of github.com:r0ket/r0ket

  • Loading branch information...
2 parents 9970d42 + 2896c53 commit 703e365da4834e887f471e58942c366af7e18152 @Sec42 Sec42 committed May 6, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 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

0 comments on commit 703e365

Please sign in to comment.