ath79: add support for Qihoo C301
[openwrt/staging/981213.git] / target / linux / ath79 / base-files / etc / init.d / bootcount
1 #!/bin/sh /etc/rc.common
2 START=99
3
4 boot() {
5 case $(board_name) in
6 qihoo,c301)
7 local n=$(fw_printenv activeregion | cut -d = -f 2)
8 fw_setenv "image${n}trynum" 0
9 ;;
10 esac
11 }