immortalwrt/target/linux/ramips/mt7621/base-files/etc/init.d/bootcount
2020-09-12 15:01:12 +08:00

20 lines
360 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
boot() {
case $(board_name) in
alfa-network,quad-e4g)
[ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
;;
linksys,ea7300-v1|\
linksys,ea7500-v2)
mtd resetbc s_env || true
;;
samknows,whitebox-v8)
fw_setenv bootcount 0
;;
esac
}