summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-network-server
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2023-04-26 14:06:58 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2023-04-26 14:06:58 -0500
commit38aba82156d7242035e534c74acf9dd1eb0cfea0 (patch)
treeecdd5b2abae59220ac86fb0059b17e2e4dd9ce5b /recipes-connectivity/lora/lora-network-server
parent117f619490406efb0532f7e0a53808994c53b06f (diff)
downloadmeta-mlinux-38aba82156d7242035e534c74acf9dd1eb0cfea0.tar.gz
meta-mlinux-38aba82156d7242035e534c74acf9dd1eb0cfea0.tar.bz2
meta-mlinux-38aba82156d7242035e534c74acf9dd1eb0cfea0.zip
Revert "Updated lora recipes to HEAD"
This reverts commit f9f17c1f34ec1bbb75bccb3ac84d358acb038d2e.
Diffstat (limited to 'recipes-connectivity/lora/lora-network-server')
-rwxr-xr-xrecipes-connectivity/lora/lora-network-server/lora-network-server.init38
1 files changed, 18 insertions, 20 deletions
diff --git a/recipes-connectivity/lora/lora-network-server/lora-network-server.init b/recipes-connectivity/lora/lora-network-server/lora-network-server.init
index 530e9b9..8e2e729 100755
--- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init
+++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init
@@ -99,6 +99,24 @@ setup_mtcdt3() {
lora_2_id=$lora_id
}
+hardware_found() {
+ if [[ "$lora_id" =~ "$lora_mtac_g_id" ]]; then
+ setup_mtcdt_2_1
+ elif [[ "$lora_id" =~ "$lora_mtac_2g4_id" ]]; then
+ setup_mtcdt_2g4
+ elif [[ "$lora_id" =~ "$lora_mtac_003_id" ]]; then
+ setup_mtcdt003
+ elif [[ "$lora_id" =~ "$lora_mtac_id" ]]; then
+ setup_mtcdt
+ elif [[ "$lora_id" =~ "$lora_mtcap3_id" ]]; then
+ setup_mtcap3
+ elif [[ "$lora_id" =~ "$lora_mtcap_id" ]]; then
+ setup_mtcap
+ else
+ return 1
+ fi
+}
+
setup_mtcdt_2g4() {
mts-io-sysfs store lora/reset 0
mts-io-sysfs store lora/boot 0
@@ -246,26 +264,6 @@ setup_mtcap() {
return 0
}
-
-hardware_found() {
- if [[ "$lora_id" =~ "$lora_mtac_g_id" ]]; then
- setup_mtcdt_2_1
- elif [[ "$lora_id" =~ "$lora_mtac_2g4_id" ]]; then
- setup_mtcdt_2g4
- elif [[ "$lora_id" =~ "$lora_mtac_003_id" ]]; then
- setup_mtcdt003
- elif [[ "$lora_id" =~ "$lora_mtac_id" ]]; then
- setup_mtcdt
- elif [[ "$lora_id" =~ "$lora_mtcap3_id" ]]; then
- setup_mtcap3
- elif [[ "$lora_id" =~ "$lora_mtcap_id" ]]; then
- setup_mtcap
- else
- return 1
- fi
-}
-
-
do_start() {
# create run directory
mkdir -p $run_dir/1