apm821xx: MR24: add to uboot-envtools
[openwrt/staging/mkresin.git] / package / boot / uboot-envtools / files / apm821xx
1 #!/bin/sh
2
3 [ -e /etc/config/ubootenv ] && exit 0
4
5 touch /etc/config/ubootenv
6
7 . /lib/uboot-envtools.sh
8 . /lib/functions.sh
9
10 board=$(board_name)
11
12 case "$board" in
13 meraki,mr24)
14 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
15 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "4"
16 ;;
17 esac
18
19 config_load ubootenv
20 config_foreach ubootenv_add_app_config ubootenv
21
22 exit 0