#!/bin/bash

echo "Creating a new temporary directory..."
mkdir  /home/root/update_script

echo "Go to the temporary directory..."
cd update_script/

echo "Downloading the necessary files..."
wget http://sftp.iotvega.com/For_BS/update_script.tar.gz

echo "Proceed to unpacking."
tar -xvf update_script.tar.gz

chmod +x /home/root/update_script/bs_lora_update_script.sh && ./bs_lora_update_script.sh
