Skip to content
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