aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/uqmi/files
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2018-01-19 11:31:52 +0100
committerJohn Crispin <john@phrozen.org>2018-01-22 08:46:46 +0100
commit5bdbc10b1b0d323f145f652f45a8f9bed6aaa40d (patch)
tree5cf49e504d3d04656bdfb85c5e99b47cb19b36e1 /package/network/utils/uqmi/files
parent666e9cf2220b11ccd024cad13ad54ca71d40c5b3 (diff)
downloadupstream-5bdbc10b1b0d323f145f652f45a8f9bed6aaa40d.tar.gz
upstream-5bdbc10b1b0d323f145f652f45a8f9bed6aaa40d.tar.bz2
upstream-5bdbc10b1b0d323f145f652f45a8f9bed6aaa40d.zip
uqmi: silence error on pin verification
If a device only supports the 2nd verification method (uim), the first method will fail as expected reporting an error: "Command not supported" Silence both separate methods and only report an error regarding pin verification if both fail. Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'package/network/utils/uqmi/files')
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh2
1 files changed, 1 insertions, 1 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 9a534d4b96..1619c2b35e 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -70,7 +70,7 @@ proto_qmi_setup() {
done
[ -n "$pincode" ] && {
- uqmi -s -d "$device" --verify-pin1 "$pincode" || uqmi -s -d "$device" --uim-verify-pin1 "$pincode" || {
+ uqmi -s -d "$device" --verify-pin1 "$pincode" > /dev/null || uqmi -s -d "$device" --uim-verify-pin1 "$pincode" > /dev/null || {
echo "Unable to verify PIN"
proto_notify_error "$interface" PIN_FAILED
proto_block_restart "$interface"