immortalwrt/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount

17 lines
316 B
Plaintext
Raw Normal View History

2019-12-08 12:13:33 +08:00
#!/bin/sh /etc/rc.common
START=99
boot() {
2019-12-08 12:13:33 +08:00
case $(board_name) in
alfa-network,awusfree1)
2019-12-08 12:13:33 +08:00
[ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
;;
xiaomi,mi-router-4c|\
xiaomi,miwifi-nano)
fw_setenv flag_boot_success 1
2019-12-08 12:13:33 +08:00
;;
esac
}