diff options
| author | Jeff Hatch <jhatch@multitech.com> | 2020-06-04 14:23:47 -0500 |
|---|---|---|
| committer | Jeff Hatch <jhatch@multitech.com> | 2020-06-04 14:23:47 -0500 |
| commit | 2fc1c8f4367fa674940f64927252fd6349a2d63b (patch) | |
| tree | eb08d052d64d0814ea1cfc75664b64be68eaffbb /recipes-core/mlinux-scripts/mlinux-scripts-1.2/mlinux-cell-radio-ready | |
| parent | e26f94e3f97b755652327f5652ea32f9ebf2b57b (diff) | |
| parent | e919ef1e33c2cb56856cdbd22792a3bc3f36341d (diff) | |
| download | meta-mlinux-atmel-2fc1c8f4367fa674940f64927252fd6349a2d63b.tar.gz meta-mlinux-atmel-2fc1c8f4367fa674940f64927252fd6349a2d63b.tar.bz2 meta-mlinux-atmel-2fc1c8f4367fa674940f64927252fd6349a2d63b.zip | |
Merge branch 'test-split' into 'master'
Test split
See merge request !1
Diffstat (limited to 'recipes-core/mlinux-scripts/mlinux-scripts-1.2/mlinux-cell-radio-ready')
| -rw-r--r-- | recipes-core/mlinux-scripts/mlinux-scripts-1.2/mlinux-cell-radio-ready | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/recipes-core/mlinux-scripts/mlinux-scripts-1.2/mlinux-cell-radio-ready b/recipes-core/mlinux-scripts/mlinux-scripts-1.2/mlinux-cell-radio-ready deleted file mode 100644 index 42c5cdc..0000000 --- a/recipes-core/mlinux-scripts/mlinux-scripts-1.2/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 |
