1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
16 idx="$(find_mtd_index 0:appsblenv)"
18 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
23 idx="$(find_mtd_index 0:appsblenv)"
25 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
28 idx="$(find_mtd_index 0:appsblenv)"
30 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
36 idx="$(find_mtd_index u_env)"
38 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
42 idx="$(find_mtd_index 0:appsblenv)"
44 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000"
49 idx="$(find_mtd_index 0:appsblenv)"
51 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
52 idx2="$(find_mtd_index bdata)"
54 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
57 mmcpart="$(find_mmc_part 0:APPSBLENV)"
58 [ -n "$mmcpart" ] && \
59 ubootenv_add_uci_config "$mmcpart" "0x0" "0x40000" "0x400" "0x100"
62 idx="$(find_mtd_index 0:appsblenv)"
64 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x20000" "1"
67 mmcpart="$(find_mmc_part 0:APPSBLENV)"
68 [ -n "$mmcpart" ] && \
69 ubootenv_add_uci_config "$mmcpart" "0x0" "0x40000" "0x40000" "1"
74 config_foreach ubootenv_add_app_config