From: Chuanhong Guo Date: Sat, 10 Aug 2019 12:00:24 +0000 (+0800) Subject: ath79: adtran,bsap1840/bsap1800-v2: move bootcount out of 02_network X-Git-Tag: v21.02.0-rc1~5254 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=68588e15184fe4b1fa99ccf969ee314cf55bc02e;p=openwrt%2Fopenwrt.git 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 Signed-off-by: Chuanhong Guo --- diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index c9261f3556..9702a29ad9 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -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) diff --git a/target/linux/ath79/base-files/etc/init.d/bootcount b/target/linux/ath79/base-files/etc/init.d/bootcount index c734fd9d33..7807559d81 100755 --- a/target/linux/ath79/base-files/etc/init.d/bootcount +++ b/target/linux/ath79/base-files/etc/init.d/bootcount @@ -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