1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
21 zyxel,gs1900-24hp-v1|\
23 idx="$(find_mtd_index u-boot-env)"
25 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
26 idx2="$(find_mtd_index u-boot-env2)"
28 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
31 idx="$(find_mtd_index u-boot-env)"
33 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
34 idx2="$(find_mtd_index u-boot-env2)"
36 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x3800" "0x10000"
39 idx="$(find_mtd_index u-boot-env)"
41 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
42 idx2="$(find_mtd_index u-boot-env2)"
44 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
49 config_foreach ubootenv_add_app_config