Files
openwrt-kernel5.4-nss-qsdk10.0/target/linux/ramips/mt7620/base-files/etc/init.d/bootcount
2025-06-24 13:14:22 +02:00

15 lines
284 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
boot() {
case $(board_name) in
alfa-network,ac1200rm|\
alfa-network,r36m-e4g|\
alfa-network,tube-e4g)
[ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
;;
esac
}