kirkwood: support Linksys boot counter on EA[34]500
authorLuka Perkov <luka@openwrt.org>
Tue, 10 Nov 2015 00:16:37 +0000 (00:16 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 10 Nov 2015 00:16:37 +0000 (00:16 +0000)
commit9a28a84b8154e48243ddd1663c297d5806521d19
tree6e34f5863b3d0676b7d44a848b5b7bf5030c2168
parent313cacaf9a572d3e75f2f45d5d1dcdd271e6db9f
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]