1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
13 idx="$(find_mtd_index 0:appsblenv)"
15 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
19 idx="$(find_mtd_index 0:appsblenv)"
21 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
24 idx="$(find_mtd_index 0:appsblenv)"
26 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
31 idx="$(find_mtd_index 0:appsblenv)"
33 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
34 idx2="$(find_mtd_index bdata)"
36 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
39 idx="$(find_mtd_index 0:appsblenv)"
41 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x20000" "1"
46 config_foreach ubootenv_add_app_config