[source] ar71xx: fix minor syntax error in /lib/upgrade/platform.sh

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 22 10:02:05 PDT 2017


neoraider pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/1d1935b242e2a2e5d34b2342b90eb772857e90bb

commit 1d1935b242e2a2e5d34b2342b90eb772857e90bb
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Sat Apr 22 18:56:25 2017 +0200

    ar71xx: fix minor syntax error in /lib/upgrade/platform.sh
    
    Fix a '==' that should be a '=' in a test condition. Busybox fortunately
    doesn't care.
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 4f479ce..580e09a 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -111,7 +111,7 @@ tplink_pharos_check_image() {
 	# is accepted (loading the first 1.5M of a remote image for this check seems
 	# a bit extreme)
 	dd if="$1" bs=1 skip=1511432 count=1024 2>/dev/null | while read line; do
-		[ "$line" == "$model_string" ] && break
+		[ "$line" = "$model_string" ] && break
 	done || {
 		echo "Unsupported image (model not in support-list)"
 		return 1



More information about the lede-commits mailing list