diff options
author | Stefan Lippers-Hollmann <s.l-h@gmx.de> | 2021-05-07 01:00:58 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-05-08 18:45:42 +0200 |
commit | f70e11cd974effdea1ed2ae0ded3033984ba3dad (patch) | |
tree | 2d2338b9b97e11133ec22b1a63841d810aa20246 /target/linux/ipq806x/base-files/lib/upgrade | |
parent | 2db9dded0a1a6133398e75006320f6c1f5d0e17b (diff) | |
download | upstream-f70e11cd974effdea1ed2ae0ded3033984ba3dad.tar.gz upstream-f70e11cd974effdea1ed2ae0ded3033984ba3dad.tar.bz2 upstream-f70e11cd974effdea1ed2ae0ded3033984ba3dad.zip |
ipq806x: g10: case-insensitive qcom-smem partitions
The out-of-tree qcom-smem patches traditionally displayed mtd partition names
in upper case, starting with the new mainline qcom-smem support in kernel v5.10,
it switches to normalizing the partition names to lower case.
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Diffstat (limited to 'target/linux/ipq806x/base-files/lib/upgrade')
-rw-r--r-- | target/linux/ipq806x/base-files/lib/upgrade/asrock.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ipq806x/base-files/lib/upgrade/asrock.sh b/target/linux/ipq806x/base-files/lib/upgrade/asrock.sh index 9e1376a578..8be737d2da 100644 --- a/target/linux/ipq806x/base-files/lib/upgrade/asrock.sh +++ b/target/linux/ipq806x/base-files/lib/upgrade/asrock.sh @@ -1,7 +1,9 @@ . /lib/functions.sh asrock_bootconfig_mangle() { - local mtdnum="$( find_mtd_index 0:BOOTCONFIG )" + local mtdnum="$(find_mtd_index 0:bootconfig)" + # XXX: drop upper case after kernel v5.4 is gone (qcom-smem) + [ -n "$mtdnum" ] || mtdnum="$(find_mtd_index 0:BOOTCONFIG)" if [ -z "$mtdnum" ]; then echo "cannot find bootconfig mtd partition" |