diff options
author | John Klug <john.klug@multitech.com> | 2019-08-12 12:13:11 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-08-12 12:13:11 -0500 |
commit | fd72c74c99849b26db9a6876ada2e6a0e80bc783 (patch) | |
tree | 453a0f07dd6b3e1c5417307ee9f527828e47c0cf /recipes-core/mlinux-scripts/mlinux-scripts-1.1/mlinux-cell-radio-ready | |
parent | 3697116a00cc4965f5470a6238a385be53ba831c (diff) | |
download | meta-mlinux-fd72c74c99849b26db9a6876ada2e6a0e80bc783.tar.gz meta-mlinux-fd72c74c99849b26db9a6876ada2e6a0e80bc783.tar.bz2 meta-mlinux-fd72c74c99849b26db9a6876ada2e6a0e80bc783.zip |
Update mlinux-set-apn for new chat_wrapper script
Diffstat (limited to 'recipes-core/mlinux-scripts/mlinux-scripts-1.1/mlinux-cell-radio-ready')
-rw-r--r-- | recipes-core/mlinux-scripts/mlinux-scripts-1.1/mlinux-cell-radio-ready | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/recipes-core/mlinux-scripts/mlinux-scripts-1.1/mlinux-cell-radio-ready b/recipes-core/mlinux-scripts/mlinux-scripts-1.1/mlinux-cell-radio-ready deleted file mode 100644 index 42c5cdc..0000000 --- a/recipes-core/mlinux-scripts/mlinux-scripts-1.1/mlinux-cell-radio-ready +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -# The timeout can be set in the environment or the -# first parameter. - -COUNTER=0 - -if [ $# -gt 1 ]; then - echo "usage: $0 [timeout]" - exit 1 -fi - -[ $# -eq 1 ] && TIMEOUT=$1 - -# Set the default TIMEOUT -: ${TIMEOUT:=60} - -# Wait for the radio to be ready before continuing -while [ $COUNTER -lt $TIMEOUT ]; do - TYPE=$(radio-query --type) - MODEL=$(radio-query --model) - if [ $? == 0 ]; then - echo "Cellular radio is ready." - exit 0 - fi - let COUNTER=COUNTER+1 - - echo "Waiting for radio to come up in order to identify type ..." - - sleep 1 -done - -echo "Cellular radio is not ready." -exit 1 |