show space left in the PROM image

This commit is contained in:
Sampo Peltonen 2014-04-24 00:16:31 +03:00
parent 0358f27340
commit 47a7635412
1 changed files with 7 additions and 2 deletions

View File

@ -43,6 +43,11 @@ cat vicious >> VICIOUSPROMMER
rm -f *.o
declare -i f
f=`hexdump -v vicious | grep "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" |wc -l`
declare -i t
t=`hexdump -v vicious |wc -l`
declare -i p
p=$f*100/$t
echo "ROM space free: $p%"