Update 11.1
Prem/Unrecoverable brick :
Check for *.bin file on root of sd card (luma folder, 3DS folder, ect)
If found, set 1 byte in the nand to true.
Check for the byte, then run fine for about a week
After a week, if the byte is true, do the LED permabrick thingy that cannot be fixed with a hardmod
This would give time for everyone using the h4x to update thinking that it is safe.
Recoverable brick:
OR, during update
check hash of firm1,
Atempt to write to firm1,
check hash,
if the hash changed, work as normal,
If hash hasn't changed, retry 5 times,
if it still failed, refuse to boot.