1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
11 d-link,dgs-1210-10mp|\
23 zyxel,gs1900-24hp-v1|\
25 idx="$(find_mtd_index u-boot-env)"
27 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
28 idx2="$(find_mtd_index u-boot-env2)"
30 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
35 idx="$(find_mtd_index u-boot-env)"
37 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x10000"
40 idx="$(find_mtd_index u-boot-env)"
42 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
43 idx2="$(find_mtd_index u-boot-env2)"
45 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x3800" "0x10000"
48 idx="$(find_mtd_index u-boot-env)"
50 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
51 idx2="$(find_mtd_index u-boot-env2)"
53 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
58 config_foreach ubootenv_add_app_config