Nice HOW-TO-REVIVE-NON-BOOTING-BOX

The only very small enhancement - use, instead of fixed file size, local automatic variable
named "$filesize".

So, for example, flashing kernel ends up with...