summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-network-server
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2016-11-21 14:48:51 -0600
committerJason Reiss <jreiss@multitech.com>2016-11-21 14:48:51 -0600
commit92537cc9d8a645d34b58dcca3f0ceabc564ce86e (patch)
tree5fa17096c95217be2a0490ed55dd6f6376e3805e /recipes-connectivity/lora/lora-network-server
parente093123ceafca8eb6d8d041e0ad09f67d1202c73 (diff)
downloadmeta-mlinux-92537cc9d8a645d34b58dcca3f0ceabc564ce86e.tar.gz
meta-mlinux-92537cc9d8a645d34b58dcca3f0ceabc564ce86e.tar.bz2
meta-mlinux-92537cc9d8a645d34b58dcca3f0ceabc564ce86e.zip
lora: check for MTAC_LORA in product-id of installed card
Diffstat (limited to 'recipes-connectivity/lora/lora-network-server')
-rwxr-xr-xrecipes-connectivity/lora/lora-network-server/lora-network-server.init5
1 files 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