filogic: Add support for D-Link AQUILA PRO AI M30
[openwrt/staging/stintel.git] / target / linux / mediatek / filogic / base-files / etc / init.d / bootcount
1 #!/bin/sh /etc/rc.common
2 # SPDX-License-Identifier: GPL-2.0-only
3
4 START=99
5
6 boot() {
7 case $(board_name) in
8 dlink,aquila-pro-ai-m30-a1)
9 if grep -q bootpart=ubi0 /proc/cmdline; then
10 fw_setenv bootpart 0
11 else
12 fw_setenv bootpart 1
13 fi
14 ;;
15 zyxel,ex5700-telenor)
16 fw_setenv uboot_bootcount 0
17 ;;
18 esac
19 }