1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
20 zyxel,gs1900-24hp-v1|\
22 idx="$(find_mtd_index u-boot-env)"
24 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
25 idx2="$(find_mtd_index u-boot-env2)"
27 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
30 idx="$(find_mtd_index u-boot-env)"
32 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
33 idx2="$(find_mtd_index u-boot-env2)"
35 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x3800" "0x10000"
38 idx="$(find_mtd_index u-boot-env)"
40 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
41 idx2="$(find_mtd_index u-boot-env2)"
43 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
48 config_foreach ubootenv_add_app_config