aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/uqmi
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2018-02-15 15:16:00 +0100
committerJohn Crispin <john@phrozen.org>2018-02-18 09:34:32 +0100
commit7c259fb98018e4ab097df0d14ac6b3e4ae1c2650 (patch)
tree2b399d759eb4a5481ff844904ff8b1bb47856eea /package/network/utils/uqmi
parent046222dfaf1272d7689f9bca17ecdd1fbdda38e5 (diff)
downloadupstream-7c259fb98018e4ab097df0d14ac6b3e4ae1c2650.tar.gz
upstream-7c259fb98018e4ab097df0d14ac6b3e4ae1c2650.tar.bz2
upstream-7c259fb98018e4ab097df0d14ac6b3e4ae1c2650.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')
-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"