mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-11 09:09:40 +00:00
ath79: adtran,bsap1840/bsap1800-v2: move bootcount out of 02_network
These device supports were introduced before /etc/init.d/bootcount and they had a bootcount reset done in /etc/board.d/02_network. Move it into /etc/init.d/bootcount instead. Suggested-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
parent
92e60260d5
commit
68588e1518
@ -304,7 +304,6 @@ ath79_setup_macs()
|
||||
case "$board" in
|
||||
adtran,bsap1800-v2|\
|
||||
adtran,bsap1840)
|
||||
fconfig -s -w -d $(find_mtd_part "RedBoot config") -n boot_cntb -x 0
|
||||
lan_mac=$(mtd_get_mac_binary "Board data" 2)
|
||||
;;
|
||||
avm,fritz300e)
|
||||
|
@ -4,6 +4,10 @@ START=99
|
||||
|
||||
boot() {
|
||||
case $(board_name) in
|
||||
adtran,bsap1800-v2|\
|
||||
adtran,bsap1840)
|
||||
fconfig -s -w -d $(find_mtd_part "RedBoot config") -n boot_cntb -x 0
|
||||
;;
|
||||
qihoo,c301)
|
||||
local n=$(fw_printenv activeregion | cut -d = -f 2)
|
||||
fw_setenv "image${n}trynum" 0
|
||||
|
Loading…
Reference in New Issue
Block a user