summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2023-05-19 10:14:29 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2023-05-19 10:14:29 -0500
commit3fa62ee10d8960f5b2217c72a2012477f96c4e10 (patch)
treef362d073b89cdea0086d1c31ba48a4f4c382821e /recipes-connectivity/lora
parent608d7ed3ce4260feef97fdd20a84a3aa010d72e2 (diff)
downloadmeta-mlinux-3fa62ee10d8960f5b2217c72a2012477f96c4e10.tar.gz
meta-mlinux-3fa62ee10d8960f5b2217c72a2012477f96c4e10.tar.bz2
meta-mlinux-3fa62ee10d8960f5b2217c72a2012477f96c4e10.zip
Added spi setup for dual cards in pkf mode
Diffstat (limited to 'recipes-connectivity/lora')
-rwxr-xr-xrecipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init
index 1e54d65..dbc1cb7 100755
--- a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init
+++ b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init
@@ -370,6 +370,7 @@ do_start() {
program stop = \"$daemon_stop --pidfile $pkt_fwd_pidfile --retry 5\"" > /etc/monit.d/lora-pkt-fwd-1
if [ "$dual_cards_installed" == "true" ]; then
+ pkt_fwd_options=" -p 2"
pkf_2_exec="exec $pkt_fwd_2 $pkt_fwd_options -l $pkt_fwd_2_log"
$daemon_start --chdir $run_dir/2 --make-pidfile --pidfile $pkt_fwd_2_pidfile --startas /bin/bash -- -c "$pkf_2_exec"
echo "check process lora-pkt-fwd-2 with pidfile $pkt_fwd_2_pidfile