summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrecipes-core/multitech/cell-radio-fwswitch/cell-radio-fwswitch.sh6
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