summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2025-06-11 10:14:41 +0000
committerDaniel Golle2025-06-25 01:06:57 +0000
commit2ce1ca11b05b655edd9a9ea1eaacdf66dd070a86 (patch)
tree88aba9aa2b0a312f96ae378d2f08cab3969dbf9a
parentd8303b47218811432b8a2e5db58c02dcb74045ff (diff)
downloadopenwrt-2ce1ca11b05b655edd9a9ea1eaacdf66dd070a86.tar.gz
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>
-rw-r--r--package/boot/uboot-tools/uboot-envtools/files/ipq806x2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/boot/uboot-tools/uboot-envtools/files/ipq806x b/package/boot/uboot-tools/uboot-envtools/files/ipq806x
index 443a0e13d4..c0d11b70d7 100644
--- a/package/boot/uboot-tools/uboot-envtools/files/ipq806x
+++ b/package/boot/uboot-tools/uboot-envtools/files/ipq806x
@@ -12,7 +12,7 @@ touch /etc/config/ubootenv
board=$(board_name)
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_size=$(echo $UBOOTENV_PART | awk '{print "0x"$2}')
mtd_erase=$(echo $UBOOTENV_PART | awk '{print "0x"$3}')