94c0d8944a32c4f7e0173db1f22d401f64d505bb
[openwrt/openwrt.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