uqmi: ensure CID is a numeric value before proceeding
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Mon, 19 Feb 2018 10:02:45 +0000 (11:02 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 20 Feb 2018 09:50:37 +0000 (10:50 +0100)
commit788312ca59c57f1cfc4737378526ff1c2a1c8374
tree5d152b94d844c97f8b599bbea1c89419824758db
parentb934aa2f2144357ce5f9a62d3fcd2f326e8e9b2b
uqmi: ensure CID is a numeric value before proceeding

The current implementation only checked if uqmi itself executed
correctly which is also the case when the returned value is actually
an error.

Rework this, checking that CID is a numeric value, which can only
be true if uqmi itself also executed correctly.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh