diff options
author | Thibaut VARENE <hacks@slashdirt.org> | 2017-02-11 11:10:37 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-12 15:57:37 +0100 |
commit | 33154eaf41e8045def037ca037d8a29a2b3e8284 (patch) | |
tree | 2339cc636b2211ad10adb0e9e75d20444c467799 /target | |
parent | f938de791438fc932c5a5ccfecd8f33050e3e103 (diff) | |
download | upstream-33154eaf41e8045def037ca037d8a29a2b3e8284.tar.gz upstream-33154eaf41e8045def037ca037d8a29a2b3e8284.tar.bz2 upstream-33154eaf41e8045def037ca037d8a29a2b3e8284.zip |
ar71xx: fix platform_find_rootfspart()
platform_find_rootfspart() fails if the kernel partition comes before the
rootfs partition. The proposed patch fixes this while preserving what I
understand was the original idea: stop at first match.
Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index cf2aab2737..c87fbff75b 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -46,7 +46,7 @@ platform_find_kernelpart() { platform_find_rootfspart() { local part for part in "${1%:*}" "${1#*:}"; do - [ "$part" != "$2" ] && echo "$part"; break + [ "$part" != "$2" ] && echo "$part" && break done } |