diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2023-04-24 17:09:16 -0500 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2023-04-24 17:09:16 -0500 |
commit | f9f17c1f34ec1bbb75bccb3ac84d358acb038d2e (patch) | |
tree | 4cf243ee1a0162e120958aee51180d463470004f /recipes-connectivity/lora/lora-network-server | |
parent | 853d47b8d01e5c4511ee381fa9bef1bce4710bcd (diff) | |
download | meta-mlinux-f9f17c1f34ec1bbb75bccb3ac84d358acb038d2e.tar.gz meta-mlinux-f9f17c1f34ec1bbb75bccb3ac84d358acb038d2e.tar.bz2 meta-mlinux-f9f17c1f34ec1bbb75bccb3ac84d358acb038d2e.zip |
Updated lora recipes to HEAD
Diffstat (limited to 'recipes-connectivity/lora/lora-network-server')
-rwxr-xr-x | recipes-connectivity/lora/lora-network-server/lora-network-server.init | 38 |
1 files changed, 20 insertions, 18 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 8e2e729..530e9b9 100755 --- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init +++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init @@ -99,24 +99,6 @@ 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 @@ -264,6 +246,26 @@ 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 |