diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-05-11 15:40:20 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-03 16:08:52 +0200 |
commit | f0758c3b104d79e434776be595db0041489d300d (patch) | |
tree | 9e73de406fd6d1e030d440ecc0105fb732a8fa8c /utils/qmi-network | |
parent | 20d40a528b59dce9094e57be4043bb8c2fdeffaf (diff) | |
download | external_libqmi-f0758c3b104d79e434776be595db0041489d300d.zip external_libqmi-f0758c3b104d79e434776be595db0041489d300d.tar.gz external_libqmi-f0758c3b104d79e434776be595db0041489d300d.tar.bz2 |
utils,qmi-network: always compare strings in if() conditions
Diffstat (limited to 'utils/qmi-network')
-rwxr-xr-x | utils/qmi-network | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/qmi-network b/utils/qmi-network index 9ccca39..8686527 100755 --- a/utils/qmi-network +++ b/utils/qmi-network @@ -78,7 +78,7 @@ start_network () START_NETWORK_CMD="qmicli -d $DEVICE --wds-start-network $USE_PREVIOUS_CID --client-no-release-cid" echo "Starting network with '$START_NETWORK_CMD'..." - if [[ $QMIDEBUG -eq 1 ]]; then + if [[ "x$QMIDEBUG" != "x" ]]; then START_NETWORK_OUT="\ [/dev/cdc-wdm0] Network started Packet data handle: '3634026241' @@ -127,7 +127,7 @@ stop_network () STOP_NETWORK_CMD="qmicli -d $DEVICE --wds-stop-network=$PDH --client-cid=$CID" echo "Stopping network with '$STOP_NETWORK_CMD'..." - if [[ $QMIDEBUG -eq 1 ]]; then + if [[ "x$QMIDEBUG" != "x" ]]; then STOP_NETWORK_OUT="\ [/dev/cdc-wdm0] Network stopped " @@ -150,7 +150,7 @@ packet_service_status () STATUS_CMD="qmicli -d $DEVICE --wds-get-packet-service-status $USE_PREVIOUS_CID" echo "Getting status with '$STATUS_CMD'..." - if [[ $QMIDEBUG -eq 1 ]]; then + if [[ "x$QMIDEBUG" != "x" ]]; then STATUS_OUT="\ [/dev/cdc-wdm0] Connection status: 'disconnected' " |