From 53d85af4c9d38e4e52ceb6401c719f1148b26299 Mon Sep 17 00:00:00 2001 From: SpieringsAE Date: Fri, 4 Oct 2024 15:05:42 +0200 Subject: [PATCH] Fix install script, not sourcing right bashrc --- etc/controller_update/current-release.txt | 4 ++-- installer/gocontroll-first-install | 2 +- usr/moduline/python/identify.py | 2 +- version.txt | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/etc/controller_update/current-release.txt b/etc/controller_update/current-release.txt index 7881295..1fdca3a 100644 --- a/etc/controller_update/current-release.txt +++ b/etc/controller_update/current-release.txt @@ -1,3 +1,3 @@ -0.8.0 -repo ver V1.18.0 +0.8.1 +repo ver V1.18.1 for changelog see version.txt or the github page for the release. \ No newline at end of file diff --git a/installer/gocontroll-first-install b/installer/gocontroll-first-install index c2cf4db..907677d 100644 --- a/installer/gocontroll-first-install +++ b/installer/gocontroll-first-install @@ -119,7 +119,7 @@ cp -avr /root/GOcontroll/GOcontroll*/root / > /dev/null cp -avr /root/GOcontroll/GOcontroll*/home / > /dev/null cp -avr /root/GOcontroll/GOcontroll*/version.txt /root > /dev/null -source /root/.bashrc +source /etc/bash.bashrc echo -e "${YELLOW}-Assign correct execution rights to files ${NORMAL}" chmod 555 /usr/moduline/bash/go-simulink.sh diff --git a/usr/moduline/python/identify.py b/usr/moduline/python/identify.py index 3ee2300..1ccaf16 100644 --- a/usr/moduline/python/identify.py +++ b/usr/moduline/python/identify.py @@ -17,7 +17,7 @@ def led_flashing(): subprocess.run(["lsb_release", "-a"]) print("\nGOcontroll:\n") subprocess.run(["cat", "/sys/firmware/devicetree/base/hardware"]) -print("Serial Number:") +print("\nSerial Number:") subprocess.run(["go-sn", "r"]) try: with open("/root/version.txt", "r") as file: diff --git a/version.txt b/version.txt index 28d1e35..8ddbf31 100644 --- a/version.txt +++ b/version.txt @@ -1,6 +1,10 @@ V1.18.0 ######## +4-10-2024 V1.18.1 Release 0.8.1 +Fix the source of bashrc in the install script +Fix newline in identify + 4-10-2024 V1.18.0 Release 0.8.0 Moved the /home/GOcontroll/.bashrc and /root/.bashrc files into /etc/bash.bashrc Add a little warning message when the serial number step is skipped