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