blob: 6bcc3ad62f122e02a596e67506f4c08402cd4eb9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2
3[ -e /etc/config/ubootenv ] && exit 0
4
5touch /etc/config/ubootenv
6
7. /lib/uboot-envtools.sh
8. /lib/functions.sh
9
10board=$(board_name)
11
12case "$board" in
13meraki,mr24)
14 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
15 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "4"
16 ;;
17meraki,mx60)
18 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000" "4"
19 ;;
20netgear,wndap620|\
21netgear,wndap660)
22 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
23 ;;
24esac
25
26config_load ubootenv
27config_foreach ubootenv_add_app_config ubootenv
28
29exit 0