diff options
author | Jason Reiss <jreiss@multitech.com> | 2016-11-10 12:58:37 -0600 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2016-11-10 12:58:37 -0600 |
commit | e093123ceafca8eb6d8d041e0ad09f67d1202c73 (patch) | |
tree | 009fbbbb4c6ece6b88f5006d78a8d2ab85a835f4 /recipes-connectivity/lora/lora-packet-forwarder | |
parent | 75fd65e9f52aeea9ab27b4af85c1fa8b093e5be3 (diff) | |
parent | 38ded95350a89cae973df774242e3c35e98784d8 (diff) | |
download | meta-mlinux-e093123ceafca8eb6d8d041e0ad09f67d1202c73.tar.gz meta-mlinux-e093123ceafca8eb6d8d041e0ad09f67d1202c73.tar.bz2 meta-mlinux-e093123ceafca8eb6d8d041e0ad09f67d1202c73.zip |
merge: Conduit_0.1 changes into master
lora: update lora-network-server to 1.0.16
Diffstat (limited to 'recipes-connectivity/lora/lora-packet-forwarder')
-rwxr-xr-x | recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init | 8 |
1 files changed, 7 insertions, 1 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 259243e..8c0894a 100755 --- a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init +++ b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init @@ -13,7 +13,13 @@ pkt_fwd_pidfile=$run_dir/lora-pkt-fwd-1.pid log_file=/var/log/lora-pkt-fwd.log do_start() { - echo -n "Starting $NAME: " + echo "Starting $NAME: " + + eui=$(mts-io-sysfs show lora/eui) + # Remove colons + clean_eui="${eui//:/}" + echo "Setting gateway_id in global_conf.json to $clean_eui" + sed -i "s/\"gateway_ID\": \".*\"/\"gateway_ID\": \"$clean_eui\"/" global_conf.json mkdir -p $run_dir |