1 [ -e /etc/config/ubootenv ] && exit 0
3 touch /etc/config/ubootenv
5 . /lib/uboot-envtools.sh
15 idx="$(find_mtd_index u-boot-env)"
17 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
20 idx="$(find_mtd_index u-boot-env)"
22 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
27 config_foreach ubootenv_add_app_config ubootenv