[source] bcm53xx: suppress osafeloader info error messages during flashing

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 30 04:00:18 PST 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/727e244faec8ec8e0004a2b772d1a9424f0c9d5d

commit 727e244faec8ec8e0004a2b772d1a9424f0c9d5d
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Jan 30 11:46:08 2017 +0100

    bcm53xx: suppress osafeloader info error messages during flashing
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/bcm53xx/base-files/lib/upgrade/platform.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
index eb6dc82..f2e007d 100644
--- a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
@@ -60,7 +60,7 @@ platform_identify() {
 		return
 	}
 
-	if osafeloader info "$1" > /dev/null; then
+	if osafeloader info "$1" > /dev/null 2>&1; then
 		echo "safeloader"
 		return
 	fi



More information about the lede-commits mailing list