3 # Copyright (C) 2011-2014 OpenWrt.org
6 [ -e /etc
/config
/ubootenv
] && exit 0
8 touch /etc
/config
/ubootenv
10 .
/lib
/uboot-envtools.sh
17 alfa-network
,ap121fe|\
20 alfa-network
,pi-wifi4|\
22 allnet
,all-wap02860ac|\
31 engenius
,ens202ext-v1|\
32 engenius
,enstationac-v1|\
34 glinet
,gl-ar750s-nor|\
35 glinet
,gl-ar750s-nor-nand|\
36 librerouter
,librerouter-v1|\
55 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x10000" "0x10000"
57 buffalo
,wzr-hp-ag300h
)
58 ubootenv_add_uci_config
"/dev/mtd3" "0x0" "0x10000" "0x10000"
61 ubootenv_add_uci_config
"/dev/mtd4" "0x0" "0x10000" "0x10000"
64 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x8000" "0x10000"
66 glinet
,gl-ar300m-lite|\
67 glinet
,gl-ar300m-nand|\
68 glinet
,gl-ar300m-nor|\
70 idx
="$(find_mtd_index u-boot-env)"
72 ubootenv_add_uci_config
"/dev/mtd$idx" "0x0" "0x10000" "0x10000"
77 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x20000" "0x10000"
83 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x40000" "0x20000"
87 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x40000" "0x40000"
90 ubootenv_add_uci_config
"/dev/mtd9" "0x0" "0x10000" "0x10000"
93 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0xf800" "0x10000"
98 config_foreach ubootenv_add_app_config ubootenv