Oh, I see.
I was wondering how it detected the triple reset, it seems the should-factory-reset does something to the first 512 bytes of the vfat partition... in particular one byte is changed to 00 -> 01 -> 02 -> 03 -> 04 -> 05 (and there it exits with 1) -> 00 -> ... with subsequent calls, so that does look like a counter of sorts.
I guess if nickel starts successfully, that would be reset somehow.
Not sure if the autostart.sh method would help this guy:
https://www.mobileread.com/forums/sho...d.php?t=252810 (bricked H2O, in another thread he stated he had KSM installed)
Then again it bricked during firmware upgrade, which would likely have removed KSM anyhow.
Edit: you mean autoscript.sh?