2011-12-25 17:40:32 +00:00
|
|
|
#!/bin/sh
|
2012-05-06 13:04:17 +00:00
|
|
|
bin=firmware.bin
|
2012-04-21 12:59:08 +00:00
|
|
|
if [ ! -z "$3" ] ; then
|
|
|
|
bin=$3
|
|
|
|
fi
|
2012-05-06 13:04:17 +00:00
|
|
|
dd if=$bin seek=4 of=/dev/$1 2>/dev/null
|
|
|
|
if [ $? != 0 ] ; then
|
|
|
|
echo "Flash failed: $1 @ $2"
|
|
|
|
fi
|
2012-04-21 12:59:08 +00:00
|
|
|
if [ -z "$3" ] ; then
|
|
|
|
echo "FLASH done: $1 @ $2"
|
|
|
|
else
|
|
|
|
echo "=== FLASH of $3 done: $1 @ $2"
|
|
|
|
fi
|