1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
12 idx="$(find_mtd_index 0:appsblenv)"
14 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
17 idx="$(find_mtd_index 0:appsblenv)"
19 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
22 idx="$(find_mtd_index 0:appsblenv)"
24 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
29 idx="$(find_mtd_index 0:appsblenv)"
31 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
32 idx2="$(find_mtd_index bdata)"
34 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
37 idx="$(find_mtd_index 0:appsblenv)"
39 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x20000" "1"
44 config_foreach ubootenv_add_app_config