From 9bdf44c7f57bb4d621dbdcd8d2743df7066e8c2a Mon Sep 17 00:00:00 2001 From: Steve Magnuson Date: Mon, 31 Aug 2020 17:43:30 -0700 Subject: [PATCH] Verify presence of /boot/nexus.txt --- nexus-utilities.version | 2 +- nexus-version.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/nexus-utilities.version b/nexus-utilities.version index aae28e9..4f09ece 100644 --- a/nexus-utilities.version +++ b/nexus-utilities.version @@ -1 +1 @@ -VERSION="2.3.26" \ No newline at end of file +VERSION="2.3.27" \ No newline at end of file diff --git a/nexus-version.sh b/nexus-version.sh index c614fa1..960ec1e 100644 --- a/nexus-version.sh +++ b/nexus-version.sh @@ -2,9 +2,13 @@ # Script to print Nexus version and other info -VERSION="1.1.0" +VERSION="1.1.1" -[ -s /boot/nexus.txt ] || exit 0 +if [ ! -s /boot/nexus.txt ] +then + echo "NEXUS_VERSION=unknown" > /tmp/nexus.txt + sudo mv /tmp/nexus.txt /boot/nexus.txt +fi source /boot/nexus.txt