aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2017-09-08 13:11:07 +0200
committerFelix Fietkau <nbd@nbd.name>2018-04-19 14:39:38 +0200
commit4a243f7a09f802582f3afefc679fc7c7e0e6423e (patch)
treee31c3cdcac026fa9e01f35874ffaa633baf1b10f
parent9ce5127a49df44cd5f33b374793f9f09b8ef099b (diff)
downloadupstream-4a243f7a09f802582f3afefc679fc7c7e0e6423e.tar.gz
upstream-4a243f7a09f802582f3afefc679fc7c7e0e6423e.tar.bz2
upstream-4a243f7a09f802582f3afefc679fc7c7e0e6423e.zip
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@dev.tdt.de>
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh11
1 files 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 46ea134182..38d83ace5f 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() {