diff options
author | John Klug <john.klug@multitech.com> | 2017-08-25 19:37:18 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-09-14 17:29:43 -0500 |
commit | bd5890054f27ddbdd9c8ae0d35354124aaccd4f6 (patch) | |
tree | 06e73cca01ba055198f5305d7b605f06e270c1a0 /recipes-core | |
parent | 1e9c293760368bcfe7ce4e6e932a44266b743881 (diff) | |
download | meta-mlinux-bd5890054f27ddbdd9c8ae0d35354124aaccd4f6.tar.gz meta-mlinux-bd5890054f27ddbdd9c8ae0d35354124aaccd4f6.tar.bz2 meta-mlinux-bd5890054f27ddbdd9c8ae0d35354124aaccd4f6.zip |
Add the mlinux-set-apn script invocation for proper APN
Diffstat (limited to 'recipes-core')
-rwxr-xr-x | recipes-core/multitech/cell-radio-fwswitch/cell-radio-fwswitch.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-core/multitech/cell-radio-fwswitch/cell-radio-fwswitch.sh b/recipes-core/multitech/cell-radio-fwswitch/cell-radio-fwswitch.sh index 6e127e6..94c69ca 100755 --- a/recipes-core/multitech/cell-radio-fwswitch/cell-radio-fwswitch.sh +++ b/recipes-core/multitech/cell-radio-fwswitch/cell-radio-fwswitch.sh @@ -66,7 +66,9 @@ fi # # Exit if no TIMEOUT set # -[ $TIMEOUT -eq 0 ] && exit 0 +# This is somewhat dangerous in that we assume the radio +# will switch. +[ $TIMEOUT -eq 0 ] && (/usr/sbin/set-apn "$FWIMAGE" || exit 0) # # Wait for the radio to be ready before continuing @@ -84,6 +86,7 @@ while [ $COUNTER -lt $TIMEOUT ]; do MODEL=$(radio-query --model) if [ $? -eq 0 ]; then echo "Cellular radio firmware has been switched to $FWIMAGE image." + /usr/sbin/mlinux-switch-apn $FWIMAGE exit 0 fi @@ -94,5 +97,6 @@ while [ $COUNTER -lt $TIMEOUT ]; do sleep 1 done +/usr/sbin/mlinux-switch-apn $FWIMAGE echo "Cellular radio is not ready." exit 1 |