Skip to content

Fix the install script for the Lorank8 GW #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,12 +41,10 @@ else
exit 1
fi


# We are done, check if we must report an error, if not terminate.
if [ $? -ne 0 ];
then
led_error
else
systemctl --no-block poweroff
fi