show space left in the PROM image
This commit is contained in:
parent
0358f27340
commit
47a7635412
|
@ -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%"
|
||||
|
|
Loading…
Reference in New Issue