From 5479aa3e191d7ee07f8e8425d37a6c0715e884cb Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 25 Aug 2017 19:37:18 -0500 Subject: Add the mlinux-set-apn script invocation for proper APN --- recipes-core/multitech/cell-radio-fwswitch/cell-radio-fwswitch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3