diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-23 15:49:21 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-23 16:15:03 +0200 |
commit | 091c83884bec7524b27ef3411bcacfd4e4eb414a (patch) | |
tree | dd7bf852c63b7d95c759b1e5cd44e5db9818a36b /utils | |
parent | 88290226e745569d66b22a8367e8f9ae99d450c1 (diff) | |
download | external_libqmi-091c83884bec7524b27ef3411bcacfd4e4eb414a.zip external_libqmi-091c83884bec7524b27ef3411bcacfd4e4eb414a.tar.gz external_libqmi-091c83884bec7524b27ef3411bcacfd4e4eb414a.tar.bz2 |
cli,qmi-network: `--start-network' now requires the APN passed as a string
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/qmi-network | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/utils/qmi-network b/utils/qmi-network index f4d577b..b82fa85 100755 --- a/utils/qmi-network +++ b/utils/qmi-network @@ -29,6 +29,19 @@ fi DEVICE=$1 COMMAND=$2 STATE_FILE=/tmp/qmi-network-state +PROFILE_FILE=/etc/qmi-network.conf + +load_profile () +{ + if [ -f $PROFILE_FILE ]; then + echo "Loading profile..." + source $PROFILE_FILE + + if [ "x$APN" != "x" ]; then + echo " APN: $APN" + fi + fi +} save_state () { @@ -90,7 +103,7 @@ start_network () exit 3 fi - START_NETWORK_CMD="qmicli -d $DEVICE --wds-start-network $USE_PREVIOUS_CID --client-no-release-cid" + START_NETWORK_CMD="qmicli -d $DEVICE --wds-start-network=$APN $USE_PREVIOUS_CID --client-no-release-cid" echo "Starting network with '$START_NETWORK_CMD'..." if [ "x$QMIDEBUG" != "x" ]; then @@ -188,6 +201,9 @@ packet_service_status () # Main +# Load profile, if any +load_profile + # Load previous state, if any load_state |