diff options
Diffstat (limited to 'recipes-core/multitech/config/test.sh')
-rwxr-xr-x | recipes-core/multitech/config/test.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/test.sh b/recipes-core/multitech/config/test.sh new file mode 100755 index 0000000..7cc865d --- /dev/null +++ b/recipes-core/multitech/config/test.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# For Quectel, address 0 is expressed as "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0" +Q0ADDR="0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0" +ADDRMATCH=1 +if [[ $MADDR != $ADDR ]] ; then + ADDRMATCH=0 + if [[ $MADDR = $Q0ADDR ]] ; then + if [[ -z $ADDR ]] || [[ $ADDR = 0 ]] ; then + ADDRMATCH=1 + fi + fi +fi + +echo Addrmatch $ADDRMATCH |