From d191ae553959076e8dea6c71707b7b6f6d3c7207 Mon Sep 17 00:00:00 2001 From: Abhijeet Bhatikar Date: Mon, 10 May 2021 22:52:35 +0100 Subject: [PATCH] Fix the install script for the Lorank8 GW --- install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install b/install index ea049e0..b50e672 100755 --- a/install +++ b/install @@ -18,6 +18,14 @@ led_blank led_flash 0 sleep 1 +# Check if we start at the correct location +if [ -d Larank ] +then + mv Larank Lorank +fi + +mkdir -p $HWTARGET + # Set the Lorank installation software to the correct release. pushd Lorank if [[ $SWVERSION != "" ]]; then git checkout -q Lorank_v$SWVERSION; fi @@ -33,7 +41,6 @@ else exit 1 fi - # We are done, check if we must report an error, if not terminate. if [ $? -ne 0 ]; then @@ -41,4 +48,3 @@ then else systemctl --no-block poweroff fi -