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 07:33:07 +0000 (08:33 +0100)
commite16cc7a8c8f32a0ec865d48735ac278845c6d582
treeb5a4fd9545ba301d7e4f8b3dbcf174c8611f00b4
parent2f85985da245c1220695746384b9020dd6dc7848
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