1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
14 idx="$(find_mtd_index 0:appsblenv)"
16 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
21 idx="$(find_mtd_index 0:appsblenv)"
23 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
26 idx="$(find_mtd_index 0:appsblenv)"
28 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
33 idx="$(find_mtd_index 0:appsblenv)"
35 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
36 idx2="$(find_mtd_index bdata)"
38 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
41 mmcpart="$(find_mmc_part 0:APPSBLENV)"
42 [ -n "$mmcpart" ] && \
43 ubootenv_add_uci_config "$mmcpart" "0x0" "0x40000" "0x400" "0x100"
46 idx="$(find_mtd_index 0:appsblenv)"
48 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x20000" "1"
53 config_foreach ubootenv_add_app_config