Files
openwrt-19.07/target/linux/ramips/base-files/etc/init.d/bootcount
2025-06-24 16:03:39 +02:00

22 lines
396 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
start() {
. /lib/functions.sh
case $(board_name) in
alfa-network,ac1200rm|\
alfa-network,awusfree1|\
alfa-network,quad-e4g|\
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 -
;;
sk-wb8)
fw_setenv bootcount 0
;;
esac
}