diff options
Diffstat (limited to 'target/linux/ath79/nand/base-files/etc/init.d/bootcount')
-rwxr-xr-x | target/linux/ath79/nand/base-files/etc/init.d/bootcount | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ath79/nand/base-files/etc/init.d/bootcount b/target/linux/ath79/nand/base-files/etc/init.d/bootcount new file mode 100755 index 0000000000..c82386b55f --- /dev/null +++ b/target/linux/ath79/nand/base-files/etc/init.d/bootcount @@ -0,0 +1,13 @@ +#!/bin/sh /etc/rc.common + +# SPDX-License-Identifier: GPL-2.0 + +START=99 + +boot() { + case $(board_name) in + glinet,gl-ar300m-nand) + fw_setenv bootcount 0 + ;; + esac +} |