From: Koen Vandeputte Date: Thu, 15 Feb 2018 14:16:00 +0000 (+0100) Subject: uqmi: silence error on pin verification X-Git-Tag: v17.01.5~85 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7c259fb98018e4ab097df0d14ac6b3e4ae1c2650;p=oweals%2Fopenwrt.git 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 --- 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"