From fdbcc7d92a7e9e761238eed5f2dc96edeba069d8 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Mon, 17 Oct 2022 08:49:13 -0500 Subject: [PATCH 1/4] update --- changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog b/changelog index 006b346..5017f02 100644 --- a/changelog +++ b/changelog @@ -7,6 +7,7 @@ version=3.3.0 update chirp install - https://github.com/km4ack/pi-build/issues/337 use 64bit package to install pat on 64bit OS - https://github.com/km4ack/pi-build/issues/424 Add RepeaterStart - https://github.com/km4ack/pi-build/issues/400 + fix gridtracker download - https://github.com/km4ack/pi-build/issues/447 3.2.4 Update HotSpot Tools shortcut Change 1000 to UID in update script Remove Pi username check From 98a01e724dd836de16be260460d6fabd9706f80e Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Mon, 17 Oct 2022 08:49:35 -0500 Subject: [PATCH 2/4] fix #447 --- functions/additional.function | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/functions/additional.function b/functions/additional.function index 02f2502..9061ea9 100644 --- a/functions/additional.function +++ b/functions/additional.function @@ -510,27 +510,29 @@ EOF sudo mv qsstv.desktop /usr/share/applications/ } + ################################## # GRIDTRACKER ################################## GRIDTRACKER() { + #due to constant changes to GT website, get the download link from a file on KM4ACK github. + cd /run/user/$UID/ + wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/gt-download-links cd ${HOME} || return sudo apt-get install -y libgconf-2-4 + #determine if 32/64 bit and set download link accordingly. issue #382 if [ `getconf LONG_BIT` = '32' ]; then - #GRIDDLL=$(curl -s https://download.gridtracker.org/latest_release.html | grep arm32 | sed 's/.*href="//;s/">.*//') - GRIDDLL=$(curl -s https://storage.googleapis.com/gt_download/ | awk 'BEGIN{FS=""; OFS="\n"} {$1=$1} 1' | grep arm32 | sed '/nwjs/d;/test/d' | head -1 | sed 's///;s/<\/Key>.*//') - GT_DIR=$(echo $GRIDDLL | sed 's|/.*||') - GRIDDLL=$(echo $GRIDDLL | sed 's/.*GridTracker/GridTracker/') + GRIDDLL=$(cat /run/user/$UID/gt-download-links | grep arm32 | sed 's/arm32=//') + GT_TAR_NAME=$(echo $GRIDDLL | sed 's/.*GridTracker/GridTracker/') + else - #GRIDDLL=$(curl -s https://download.gridtracker.org/latest_release.html | grep arm64 | sed 's/.*href="//;s/">.*//') - GRIDDLL=$(curl -s https://storage.googleapis.com/gt_download/ | awk 'BEGIN{FS=""; OFS="\n"} {$1=$1} 1' | grep arm32 | sed '/nwjs/d;/test/d' | head -1 | sed 's///;s/<\/Key>.*//') - GT_DIR=$(echo $GRIDDLL | sed 's|/.*||') - GRIDDLL=$(echo $GRIDDLL | sed 's/.*GridTracker/GridTracker/') + GRIDDLL=$(cat /run/user/$UID/gt-download-links | grep arm64 | sed 's/arm64=//') + GT_TAR_NAME=$(echo $GRIDDLL | sed 's/.*GridTracker/GridTracker/') fi - wget --tries 2 --connect-timeout=60 https://storage.googleapis.com/gt_download/$GT_DIR/$GRIDDLL - GRIDTAR=$(echo $GRIDDLL | sed 's/.*\///g') - tar -xzvf $GRIDTAR + + wget --tries 2 --connect-timeout=60 $GRIDDLL + tar -xzvf $GT_TAR_NAME rm GridTracker*.gz #determine if 32/64 bit and get correct directory name. if [ `getconf LONG_BIT` = '32' ]; then @@ -539,6 +541,8 @@ GRIDTRACKER() { OLDFOLDER=$(ls | grep GridTracker*-linux-arm64) fi mv "$OLDFOLDER" $HOME/GridTracker + + cat >gridtracker.desktop < Date: Mon, 17 Oct 2022 09:06:15 -0500 Subject: [PATCH 3/4] fix #448 --- build-a-pi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index dd14382..77e332b 100755 --- a/build-a-pi +++ b/build-a-pi @@ -262,7 +262,7 @@ fi #If VARA is chosen, make sure we have a Pi 4 32 bit system to work with. #As of 02OCT2022 the VARA installer only works with the Pi 4. VARA_CHK=$(grep VARA ${BASE}) -if [ -n $VARA_CHK ]; then +if [ -n "$VARA_CHK" ]; then FREEMEM=$(free -m | grep Mem: | awk '{ print $2 }') if [ $FREEMEM -lt 1500 ]; then echo "Not enough memory available" From 3175e9d899b69ddbb6feaa874eb54bb6f1e46f53 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Mon, 17 Oct 2022 09:06:29 -0500 Subject: [PATCH 4/4] fix #448 --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index 52bb8de..cb80853 100755 --- a/update +++ b/update @@ -320,7 +320,7 @@ fi #If VARA is chosen, make sure we have a Pi 4 to work with. #As of 02OCT2022 the VARA installer only works with the Pi 4. VARA_CHK=$(grep VARA ${BASE}) -if [ -n $VARA_CHK ]; then +if [ -n "$VARA_CHK" ]; then FREEMEM=$(free -m | grep Mem: | awk '{ print $2 }') if [ $FREEMEM -lt 1500 ]; then echo "Not enough memory available"