2 # Copyright (C) 2012 OpenWrt.org
5 [ -e /etc/config/ubootenv ] && exit 0
7 touch /etc/config/ubootenv
9 . /lib/uboot-envtools.sh
16 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000" "1"
19 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "1"
21 siemens,gigaset-sx76x)
22 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000" "1"
25 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x2000" "0x20000" "1"
28 idx="$(find_mtd_index u-boot-env)"
30 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x2000" "0x1000" "2"
35 config_foreach ubootenv_add_app_config ubootenv