uboot-tools: envtools: ipq806x: ignore case of partition name
The qcomsmem MTD partition parser converts all partition names to lower case while the vendor solution uses upper case names, which often made their way into OpenWrt as labels in 'fixed-partitions' (probably due to contributors and reviewers being unaware of the qcomsmem parsers). Use case-insensitive matching of the 'APPSBLENV' name to make ubootenv_mtdinfo() work in both cases. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
d8303b4721
commit
2ce1ca11b0
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ touch /etc/config/ubootenv
|
||||||
board=$(board_name)
|
board=$(board_name)
|
||||||
|
|
||||||
ubootenv_mtdinfo () {
|
ubootenv_mtdinfo () {
|
||||||
UBOOTENV_PART=$(cat /proc/mtd | grep APPSBLENV)
|
UBOOTENV_PART=$(cat /proc/mtd | grep -i APPSBLENV)
|
||||||
mtd_dev=$(echo $UBOOTENV_PART | awk '{print $1}' | sed 's/:$//')
|
mtd_dev=$(echo $UBOOTENV_PART | awk '{print $1}' | sed 's/:$//')
|
||||||
mtd_size=$(echo $UBOOTENV_PART | awk '{print "0x"$2}')
|
mtd_size=$(echo $UBOOTENV_PART | awk '{print "0x"$2}')
|
||||||
mtd_erase=$(echo $UBOOTENV_PART | awk '{print "0x"$3}')
|
mtd_erase=$(echo $UBOOTENV_PART | awk '{print "0x"$3}')
|
||||||
|
|
Loading…
Reference in a new issue