1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
20 idx="$(find_mtd_index u-boot-env)"
22 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
23 idx2="$(find_mtd_index u-boot-env2)"
25 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
28 idx="$(find_mtd_index u-boot-env)"
30 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
31 idx2="$(find_mtd_index u-boot-env2)"
33 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x3800" "0x10000"
36 idx="$(find_mtd_index u-boot-env)"
38 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
39 idx2="$(find_mtd_index u-boot-env2)"
41 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
46 config_foreach ubootenv_add_app_config