diff --git a/patch/gridtracker20211222 b/patch/gridtracker20211222 new file mode 100644 index 0000000..8854c2a --- /dev/null +++ b/patch/gridtracker20211222 @@ -0,0 +1,50 @@ +#!/bin/bash + +#This test-patch script should serve as a +#template for future patch scripts. +#20210805 KM4ACK + +#Give this patch a unique name. A good idea is +#to give it the application name that is being +#patched followed by the date. ie FLDIDI20210805 + +PATCHNAME=gridtracker20211222 + +PATCHFILE=$HOME/.config/patch +touch $PATCHFILE +############################### +#Patch script commands go here# +############################### + cd ${HOME} || return + sudo apt-get install -y libgconf-2-4 + GRIDDLL=$(curl -s https://download.gridtracker.org/latest_release.html | grep arm32 | sed 's/.*href="//;s/">.*//') + wget --tries 2 --connect-timeout=60 $GRIDDLL + GRIDTAR=$(echo $GRIDDLL | sed 's/.*\///g') + tar -xzvf $GRIDTAR + rm GridTracker*.gz + OLDFOLDER=$(ls | grep GridTracker*-linux-arm32) + mv "$OLDFOLDER" $HOME/GridTracker + cat >gridtracker.desktop <> $PATCHFILE