diff options
Diffstat (limited to 'target/linux/ipq40xx/base-files/etc/init.d/bootcount')
-rwxr-xr-x | target/linux/ipq40xx/base-files/etc/init.d/bootcount | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/base-files/etc/init.d/bootcount b/target/linux/ipq40xx/base-files/etc/init.d/bootcount new file mode 100755 index 0000000000..604f88c396 --- /dev/null +++ b/target/linux/ipq40xx/base-files/etc/init.d/bootcount @@ -0,0 +1,14 @@ +#!/bin/sh /etc/rc.common + +START=99 + +start() { + . /lib/functions.sh + + case $(board_name) in + alfa-network,ap120c-ac) + [ -n "$(fw_printenv bootcount changed 2>/dev/null)" ] &&\ + echo -e "bootcount\nchanged\n" | /usr/sbin/fw_setenv -s - + ;; + esac +} |