mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
68588e1518
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>
17 lines
296 B
Bash
Executable File
17 lines
296 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
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
|
|
;;
|
|
esac
|
|
}
|