2 # Copyright (C) 2013 OpenWrt.org
5 [ -e /etc/config/ubootenv ] && exit 0
7 touch /etc/config/ubootenv
9 . /lib/uboot-envtools.sh
16 # Laguna uboot env size/erasesize vary depending on NOR vs SPI FLASH
17 size=$(grep mtd1 /proc/mtd | awk '{print $2}')
18 erasesize=$(grep mtd1 /proc/mtd | awk '{print $3}')
19 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x$size" "0x$erasesize"
24 config_foreach ubootenv_add_app_config ubootenv