1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
19 idx="$(find_mtd_index u-boot-env)"
21 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
22 idx2="$(find_mtd_index u-boot-env2)"
24 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
27 idx="$(find_mtd_index u-boot-env)"
29 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
30 idx2="$(find_mtd_index u-boot-env2)"
32 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
37 config_foreach ubootenv_add_app_config