From d0350c1e7324ad43160b07d1d51da3efa688893b Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Tue, 3 Jan 2012 02:15:10 +0100 Subject: [PATCH] Enhance output a bit --- tools/smartflash/flash | 2 +- tools/smartflash/mass | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/smartflash/flash b/tools/smartflash/flash index 6108c29..b2307a9 100755 --- a/tools/smartflash/flash +++ b/tools/smartflash/flash @@ -1,3 +1,3 @@ #!/bin/sh dd if=firmware.bin seek=4 of=/dev/$1 2>/dev/null -echo "FLASH done: $1" +echo "FLASH done: $1 @ $2" diff --git a/tools/smartflash/mass b/tools/smartflash/mass index d68993f..4f86d50 100755 --- a/tools/smartflash/mass +++ b/tools/smartflash/mass @@ -1,6 +1,7 @@ #!/bin/sh dev=$1 +port=$2 dir=/tmp/r0ket set -e @@ -14,6 +15,7 @@ if [ ! -d $dir/$dev ] ; then fi umount /dev/$dev 2>/dev/null || true +#mkdosfs -I /dev/$dev ./generate-keys mount /dev/$dev -t vfat $dir/$dev @@ -46,7 +48,9 @@ perl copy-files-ordered files $dir/$dev \ voltage.c0d \ debug.int -#sync -#ls -l $dir/$dev +#echo -n "$port" >$dir/$dev/NICK.CFG +## d +#echo 0300000f011e00000e0001ff0001ff8f000000 |xxd -r -p >$dir/$dev/R0KET.CFG + umount /dev/$dev -echo "MASS done: $dev $dir" +echo "MASS done: $dev @ $port"