[openwrt/openwrt] network/uqmi: pipe the output off qmi_wds_stop to /dev/null

LEDE Commits lede-commits at lists.infradead.org
Thu Apr 19 05:40:55 PDT 2018


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/4a243f7a09f802582f3afefc679fc7c7e0e6423e

commit 4a243f7a09f802582f3afefc679fc7c7e0e6423e
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Fri Sep 8 13:11:07 2017 +0200

    network/uqmi: pipe the output off qmi_wds_stop to /dev/null
    
    Pipe uqmi output from qmi_wds_stop function into /dev/null.
    This will supress the following output in proto teardown.
    
    netifd: wwan (x): "No effect"
    netifd: wwan (x): Command failed: Permission denied
    
    Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 46ea134..38d83ac 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -279,10 +279,15 @@ qmi_wds_stop() {
 
 	uqmi -s -d "$device" --set-client-id wds,"$cid" \
 		--stop-network 0xffffffff \
-		--autoconnect > /dev/null
+		--autoconnect > /dev/null 2>&1
 
-	[ -n "$pdh" ] && uqmi -s -d "$device" --set-client-id wds,"$cid" --stop-network "$pdh"
-	uqmi -s -d "$device" --set-client-id wds,"$cid" --release-client-id wds
+	[ -n "$pdh" ] && {
+		uqmi -s -d "$device" --set-client-id wds,"$cid" \
+			--stop-network "$pdh" > /dev/null 2>&1
+	}
+
+	uqmi -s -d "$device" --set-client-id wds,"$cid" \
+		--release-client-id wds > /dev/null 2>&1
 }
 
 proto_qmi_teardown() {



More information about the lede-commits mailing list