@markb,

You can just set the bootcount to 3 in your firmware everytime it boot. Then this solves the problem.

Do this in /etc/rc.local