From 44f1bd917132f7947c2ae3643e2753d58fbb4188 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 16 Oct 2022 21:11:31 -0700 Subject: [PATCH 1/6] reference material on the desktop --- build-a-pi | 3 ++- functions/additional.function | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index dd14382..4bc345c 100755 --- a/build-a-pi +++ b/build-a-pi @@ -483,6 +483,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \ false "PACKETSEARCH" "Winlink Packet Tool" \ false "CALLSIGN" "Call sign lookup" \ false "TEMPCONVERT" "Temperature Converter" \ + false "Reference Materials PDFs" \ false "GPARTED" "Disk Utility Tool" \ false "SHOWLOG" "Log file viewer" \ false "PISTATS" "Pi3/4 Stats Monitor" \ @@ -504,7 +505,7 @@ if [ ${BUT} = 252 ] || [ ${BUT} = 1 ]; then fi if [ ${BUT} = 3 ]; then - UTILAPPS=(DIPOLE PACKETSEARCH CALLSIGN TEMPCONVERT GPARTED SHOWLOG PISTATS TELNET PITERM QTSOUND SECURITY YGATE BPQ BATT VNC XYGRIB) + UTILAPPS=(DIPOLE PACKETSEARCH CALLSIGN TEMPCONVERT HDOCS GPARTED SHOWLOG PISTATS TELNET PITERM QTSOUND SECURITY YGATE BPQ BATT VNC XYGRIB) for i in "${UTILAPPS[@]}"; do echo "$i" >>${UTILITY} done diff --git a/functions/additional.function b/functions/additional.function index 02f2502..792087b 100644 --- a/functions/additional.function +++ b/functions/additional.function @@ -939,6 +939,22 @@ wget https://sourceforge.net/projects/repeater-start/files/$REPEAT_LATEST sudo dpkg -i $REPEAT_LATEST } +################################## +# Reference Documents +################################## +HDOCS() { + cd ~/Desktop + mkdir Reference + cd Reference + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-BandPlan-Update-1-2020.pdf + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-Grid-Square-Map-03-05-2019.pdf + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/2013_ITU_CQ_WorldMaps.pdf + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/HamRadioTerms-2011.pdf + wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Regulatory/Band%20Chart/Band%20Chart.pdf + wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Regulatory/Band%20Chart/Band%20Chart%20-%2011X17%20Color.pdf + wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Get%20on%20the%20Air/Comm%20w%20Other%20Hams-Q%20Signals.pdf + wget --tries 2 --connect-timeout=60 https://www.arrl.org/files/file/Get%20Licensed/Quickstart%20Guide%20EBOOK.pdf +} ################################## # JTDX From 6cfc2a36f034b8c7c313e7dcc76f23777c571e5f Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 16 Oct 2022 21:16:36 -0700 Subject: [PATCH 2/6] document menu add --- build-a-pi | 2 +- update | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-a-pi b/build-a-pi index 4bc345c..db70b42 100755 --- a/build-a-pi +++ b/build-a-pi @@ -483,7 +483,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \ false "PACKETSEARCH" "Winlink Packet Tool" \ false "CALLSIGN" "Call sign lookup" \ false "TEMPCONVERT" "Temperature Converter" \ - false "Reference Materials PDFs" \ + false "HDOCS" "Reference Materials PDFs" \ false "GPARTED" "Disk Utility Tool" \ false "SHOWLOG" "Log file viewer" \ false "PISTATS" "Pi3/4 Stats Monitor" \ diff --git a/update b/update index 52bb8de..8f4df65 100755 --- a/update +++ b/update @@ -533,6 +533,7 @@ yad --center --list --checklist --width=600 --height=600 --separator="" \ false "PACKETSEARCH" "$PACKETSEARCH" "Winlink Packet Tool" \ false "CALLSIGN" "${CALLSIGN}" "Call Sign Lookup Utility" \ false "TEMPCONVERT" "$TEMPCONVERT" "Temperature Converter" \ + false "HDOCS" "$HDOCS" "Reference Materials PDFs" \ false "GPARTED" "$GPARTED" "Disk Utility Application" \ false "RTC" "$RTC" "Real Time Clock" \ false "SHOWLOG" "$SHOWLOG" "Log File Viewer" \ From 3955028c141adc3238f7e0aee9f456b1ce48f5fc Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 16 Oct 2022 21:22:31 -0700 Subject: [PATCH 3/6] typo in function corrected --- functions/additional.function | 17 ----------------- functions/utility.function | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/functions/additional.function b/functions/additional.function index 792087b..0ddbb51 100644 --- a/functions/additional.function +++ b/functions/additional.function @@ -939,23 +939,6 @@ wget https://sourceforge.net/projects/repeater-start/files/$REPEAT_LATEST sudo dpkg -i $REPEAT_LATEST } -################################## -# Reference Documents -################################## -HDOCS() { - cd ~/Desktop - mkdir Reference - cd Reference - wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-BandPlan-Update-1-2020.pdf - wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-Grid-Square-Map-03-05-2019.pdf - wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/2013_ITU_CQ_WorldMaps.pdf - wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/HamRadioTerms-2011.pdf - wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Regulatory/Band%20Chart/Band%20Chart.pdf - wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Regulatory/Band%20Chart/Band%20Chart%20-%2011X17%20Color.pdf - wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Get%20on%20the%20Air/Comm%20w%20Other%20Hams-Q%20Signals.pdf - wget --tries 2 --connect-timeout=60 https://www.arrl.org/files/file/Get%20Licensed/Quickstart%20Guide%20EBOOK.pdf -} - ################################## # JTDX ################################## diff --git a/functions/utility.function b/functions/utility.function index f672c04..da966cd 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -512,6 +512,23 @@ sudo mv /run/user/$UID/packetsearch.desktop /usr/share/applications/ } +################################## +# Reference Documents +################################## +HDOCS() { + cd ~/Desktop + mkdir Reference + cd Reference + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-BandPlan-Update-1-2020.pdf + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-Grid-Square-Map-03-05-2019.pdf + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/2013_ITU_CQ_WorldMaps.pdf + wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/HamRadioTerms-2011.pdf + wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Regulatory/Band%20Chart/Band%20Chart.pdf + wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Regulatory/Band%20Chart/Band%20Chart%20-%2011X17%20Color.pdf + wget --tries 2 --connect-timeout=60 http://www.arrl.org/files/file/Get%20on%20the%20Air/Comm%20w%20Other%20Hams-Q%20Signals.pdf + wget --tries 2 --connect-timeout=60 https://www.arrl.org/files/file/Get%20Licensed/Quickstart%20Guide%20EBOOK.pdf +} + ################################## # PiQtSoundModem ################################## From 806db62beed20f5314a65370a1ade3781627c111 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Oct 2022 06:57:34 -0700 Subject: [PATCH 4/6] fix home location --- functions/utility.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/utility.function b/functions/utility.function index da966cd..9d808d3 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -516,7 +516,7 @@ sudo mv /run/user/$UID/packetsearch.desktop /usr/share/applications/ # Reference Documents ################################## HDOCS() { - cd ~/Desktop + cd ${HOME}/Desktop mkdir Reference cd Reference wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-BandPlan-Update-1-2020.pdf From 8f7b599f3771a8f0343aa18d315e5fb2d8d750f9 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Oct 2022 08:28:48 -0700 Subject: [PATCH 5/6] move documents to documents folder keep a copy on desktop --- functions/utility.function | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/utility.function b/functions/utility.function index 9d808d3..2f0590f 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -516,8 +516,9 @@ sudo mv /run/user/$UID/packetsearch.desktop /usr/share/applications/ # Reference Documents ################################## HDOCS() { - cd ${HOME}/Desktop + cd ${HOME}/Documents/ mkdir Reference + ln -s ${HOME}/Documents/Reference ${HOME}/Desktop/Reference cd Reference wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-BandPlan-Update-1-2020.pdf wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-Grid-Square-Map-03-05-2019.pdf From 3caea1100db29aac6d1159250536ba21d907d05c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Oct 2022 09:23:44 -0700 Subject: [PATCH 6/6] fix mkdir --- functions/utility.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/utility.function b/functions/utility.function index 2f0590f..b4819c8 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -517,7 +517,7 @@ sudo mv /run/user/$UID/packetsearch.desktop /usr/share/applications/ ################################## HDOCS() { cd ${HOME}/Documents/ - mkdir Reference + mkdir -p Reference ln -s ${HOME}/Documents/Reference ${HOME}/Desktop/Reference cd Reference wget --tries 2 --connect-timeout=60 https://icomamerica.com/en/amateur/amateurtools/US-BandPlan-Update-1-2020.pdf