#!/bin/bash

echo "Stopping lora_pkt_fwd services"
systemctl stop lora_pkt_fwd

echo "Downloading files..."
wget http://sftp.iotvega.com/For_BS/lora_pkt_fwd

echo "Proceed to unpacking."
cp lora_pkt_fwd /usr/bin/
chmod +x /usr/bin/lora_pkt_fwd

echo "Starting lora_pkt_fwd services"
systemctl start lora_pkt_fwd

rm /home/root/lora_pkt_fwd
