3 # Copyright (C) 2011-2012 OpenWrt.org
6 [ -e /etc
/config
/ubootenv
] && exit 0
8 touch /etc
/config
/ubootenv
10 .
/lib
/uboot-envtools.sh
16 alfa-network
,ac1200rm|\
17 alfa-network
,awusfree1|\
18 alfa-network
,quad-e4g|\
19 alfa-network
,r36m-e4g|\
20 alfa-network
,tube-e4g|\
22 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x1000" "0x1000"
27 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x10000" "0x10000"
29 ampedwireless
,ally-00x19k|\
30 ampedwireless
,ally-r1900k
)
31 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x1000" "0x20000" "4"
35 mediatek
,linkit-smart-7688|\
36 samknows
,whitebox-v8|\
37 xiaomi
,mi-router-3g-v2|\
38 xiaomi
,mi-router-4a-gigabit|\
43 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x1000" "0x10000"
47 idx
="$(find_mtd_index u-boot-env)"
49 ubootenv_add_uci_config
"/dev/mtd$idx" "0x4000" "0x1000" "0x1000"
52 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x20000" "0x20000"
59 xiaomi
,mi-router-3-pro|\
61 xiaomi
,mi-router-ac2100|\
62 xiaomi
,redmi-router-ac2100
)
63 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x1000" "0x20000"
66 idx
="$(find_mtd_index Config)"
68 ubootenv_add_uci_config
"/dev/mtd$idx" "0x0" "0x1000" "0x80000"
73 config_foreach ubootenv_add_app_config ubootenv