diff options
Diffstat (limited to 'target/linux/ath79/base-files/etc/init.d')
-rwxr-xr-x | target/linux/ath79/base-files/etc/init.d/bootcount | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/init.d/bootcount b/target/linux/ath79/base-files/etc/init.d/bootcount new file mode 100755 index 0000000000..b71fbf9a69 --- /dev/null +++ b/target/linux/ath79/base-files/etc/init.d/bootcount @@ -0,0 +1,11 @@ +#!/bin/sh /etc/rc.common +START=99 + +boot() { + case $(board_name) in + qihoo,c301) + local n=$(fw_printenv activeregion | cut -d = -f 2) + fw_setenv "image${n}trynum" 0 + ;; + esac +} |