kirkwood: support Linksys boot counter on EA[34]500
authorluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 10 Nov 2015 00:16:37 +0000 (00:16 +0000)
committerluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 10 Nov 2015 00:16:37 +0000 (00:16 +0000)
commit09ff4ce04a6575fb76da69e4c16d0822f58e9d24
tree6e34f5863b3d0676b7d44a848b5b7bf5030c2168
parent31bf90af8564ad7989ae1c6ba833b09601e2d8ee
kirkwood: support Linksys boot counter on EA[34]500

This is done with existing code from the WRT1900AC port.
It makes sure the "auto_recovery" bootloader option is set,
and resets the s_env boot counter after a successful boot.

This gives users without a serial console connection some
measure of safety.

Signed-off-by: Claudio Leite <leitec@staticky.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47433 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/system/mtd/src/Makefile
target/linux/kirkwood/base-files/etc/init.d/linksys_recovery [new file with mode: 0755]