From 92537cc9d8a645d34b58dcca3f0ceabc564ce86e Mon Sep 17 00:00:00 2001 From: Jason Reiss Date: Mon, 21 Nov 2016 14:48:51 -0600 Subject: lora: check for MTAC_LORA in product-id of installed card --- .../lora/lora-network-server/lora-network-server.init | 5 ++--- 1 file changed, 2 insertions(+), 3 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 d59a851..0e73148 100755 --- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init +++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init @@ -28,8 +28,7 @@ port1=/sys/devices/platform/mts-io/ap1 port2=/sys/devices/platform/mts-io/ap2 -lora_us_id="MTAC-LORA-915" -lora_eu_id="MTAC-LORA-868" +lora_mtac_id="MTAC-LORA" lora_1_0_hw="MTAC-LORA-1.0" lora_1_5_h_hw="MTAC-LORA-1.5" @@ -51,7 +50,7 @@ card_found() { ln -sf /dev/spidev32765.2 /dev/spidev0.0 fi - if [[ "$lora_id" =~ "$lora_us_id" ]] || [[ "$lora_id" =~ "$lora_eu_id" ]]; then + if [[ "$lora_id" =~ "$lora_mtac_id" ]]; then GLOBAL_CONF=/opt/lora/global_conf.json.MTAC_LORA_1_0 if [ "$lora_hw" = "$lora_hw" ] && [[ ! "$lora_id" =~ .*-SPI ]]; then ln -sf /opt/lora/basic_pkt_fwd-usb $pkt_fwd -- cgit v1.2.3