From 01334ee163818ba3557e4c4e64d37ccf9e929b90 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:14:07 -0400 Subject: [PATCH 01/26] Update chromium.desktop.autostart x-www-browser --- groundstation/chromium.desktop.autostart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/chromium.desktop.autostart b/groundstation/chromium.desktop.autostart index da2a350e..76d785f9 100644 --- a/groundstation/chromium.desktop.autostart +++ b/groundstation/chromium.desktop.autostart @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Chromium with WebSDR -Exec=chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars http://127.0.0.1:8073 +Exec=x-www-browser http://127.0.0.1:8073 From 04bcd4499a8f6b1b1454407bd3961d8be6b5427c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:15:58 -0400 Subject: [PATCH 02/26] Update fox.sh pkill firefox --- groundstation/fox.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/fox.sh b/groundstation/fox.sh index 27050f9a..0065548e 100755 --- a/groundstation/fox.sh +++ b/groundstation/fox.sh @@ -11,6 +11,8 @@ sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 sdrpp &>/dev/null sudo killall -9 rtl_tcp &>/dev/null From 2034ee330e93951b6744276d29064e9229210a28 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:17:26 -0400 Subject: [PATCH 03/26] Update sdr.sh x-www-browser --- groundstation/sdr.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/groundstation/sdr.sh b/groundstation/sdr.sh index 11298cd9..b4c5504c 100755 --- a/groundstation/sdr.sh +++ b/groundstation/sdr.sh @@ -5,7 +5,7 @@ echo "Script to run Web SDR for ARISS Radio Pi" echo -echo "The Chromium browser will load in a few seconds with OpenWebRX." +echo "The browser will load in a few seconds with OpenWebRX." echo "You can also use another web browser if you are on the same network as your Pi." @@ -32,6 +32,8 @@ sudo killall -9 rtl_fm &>/dev/null pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_tcp &>/dev/null sudo killall -9 CubicSDR &>/dev/null @@ -59,7 +61,8 @@ sudo systemctl restart openwebrx sleep 10 -setsid chromium-browser --password-store=basic --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars --app=http://localhost:8073 &>/dev/null & +#setsid chromium-browser --password-store=basic --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars --app=http://localhost:8073 &>/dev/null & +setsid x-www-browser http://localhost:8073/ sleep 10 From bb051ccfa3d0c7cc0db80ddf740e25ae592f8caa Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:18:13 -0400 Subject: [PATCH 04/26] Update cubicsdr.sh pkill firefox --- groundstation/cubicsdr.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/cubicsdr.sh b/groundstation/cubicsdr.sh index 3b125dc6..0db3a88e 100755 --- a/groundstation/cubicsdr.sh +++ b/groundstation/cubicsdr.sh @@ -17,6 +17,8 @@ sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 sdrpp &>/dev/null sudo killall -9 rtl_fm &>/dev/null From e043590076735a8abbe871aa0d6042a1271e9630 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:18:52 -0400 Subject: [PATCH 05/26] Update sstv_decode_prompt.sh pkill firefox --- groundstation/sstv_decode_prompt.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 5a398622..79c794c2 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -22,6 +22,8 @@ sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_tcp &>/dev/null sudo killall -9 java &>/dev/null From 086a5341cfdefa9915ed57efd4c7c664da5e0edb Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:19:29 -0400 Subject: [PATCH 06/26] Update rtl-tcp.sh pkill firefox --- groundstation/rtl-tcp.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index 3d49d11d..3260b865 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -29,6 +29,8 @@ sleep 2 pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo systemctl stop rtl_tcp &>/dev/null sudo killall -9 sdrpp &>/dev/null From 747c8bd204bfa397309a812cb45d3327bca43304 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:20:58 -0400 Subject: [PATCH 07/26] Update fctelem.sh x-www-browser --- groundstation/fctelem.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/groundstation/fctelem.sh b/groundstation/fctelem.sh index 0b4c92a3..b61b9a4e 100755 --- a/groundstation/fctelem.sh +++ b/groundstation/fctelem.sh @@ -5,7 +5,7 @@ echo "Script to run FUNcube CubeSatSim Telemetry" echo -echo "The Chromium browser will load in a few seconds with fctelem." +echo "The browser will load in a few seconds with fctelem." echo "You can also use another web browser if you are on the same network as your Pi." @@ -34,6 +34,8 @@ sudo killall -9 python3 &>/dev/null #pkill -o chromium &>/dev/null +#pkill -o firefox &>/dev/null + #sudo killall -9 rtl_tcp &>/dev/null #sudo killall -9 CubicSDR &>/dev/null @@ -174,7 +176,8 @@ cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg ./image_file.jpeg python3 -m http.server 8002 & -setsid chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars http://127.0.0.1:8002 &>/dev/null & +#setsid chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars http://127.0.0.1:8002 &>/dev/null & +setsid x-www-browser http://127.0.0.1:8002/ cd /home/pi/fctelem From 9f672e4d3cf9e13f84f0236c7204eb5f50104058 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:21:35 -0400 Subject: [PATCH 08/26] Update sstv_decode_iss.sh pkill firefox --- groundstation/sstv_decode_iss.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/sstv_decode_iss.sh b/groundstation/sstv_decode_iss.sh index c72ee286..46e64498 100755 --- a/groundstation/sstv_decode_iss.sh +++ b/groundstation/sstv_decode_iss.sh @@ -21,6 +21,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 qsstv &>/dev/null sudo killall -9 rtl_tcp &>/dev/null From 36d38536f30d6a70bd63b30b9ec36a70ac9d587b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:22:07 -0400 Subject: [PATCH 09/26] Update cubicsdr-packet.sh pkill firefox --- groundstation/cubicsdr-packet.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/cubicsdr-packet.sh b/groundstation/cubicsdr-packet.sh index c5f0a1e8..a14fa706 100755 --- a/groundstation/cubicsdr-packet.sh +++ b/groundstation/cubicsdr-packet.sh @@ -8,6 +8,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null From e62dc683908fbefcc69cbb814b6cf545c3f738cf Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:22:41 -0400 Subject: [PATCH 10/26] Update sstv_decode_sim.sh pkill firefox --- groundstation/sstv_decode_sim.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/sstv_decode_sim.sh b/groundstation/sstv_decode_sim.sh index 3b72c7a4..f4451d30 100755 --- a/groundstation/sstv_decode_sim.sh +++ b/groundstation/sstv_decode_sim.sh @@ -21,6 +21,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 qsstv &>/dev/null sudo killall -9 rtl_tcp &>/dev/null From f27b1a65f9f1d5549369d9c9a630b16279d78855 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:23:16 -0400 Subject: [PATCH 11/26] Update aprs.sh pkill firefox --- groundstation/aprs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/aprs.sh b/groundstation/aprs.sh index 427c36cb..358d8bf6 100755 --- a/groundstation/aprs.sh +++ b/groundstation/aprs.sh @@ -9,6 +9,8 @@ sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 sdrpp &>/dev/null sudo killall -9 rtl_fm &>/dev/null From 11d25702f1a1a0ebb33627f3366b25b55930f3cb Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:23:45 -0400 Subject: [PATCH 12/26] Update packet.sh pkill firefox --- groundstation/packet.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index c8fdef00..627d04da 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -12,6 +12,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_fm &>/dev/null sudo killall -9 sdrpp &>/dev/null From 7b7eb5c7a384968ebd4c930fa1e19016ce47f129 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:24:17 -0400 Subject: [PATCH 13/26] Update sstv_decode.sh pkill firefox --- groundstation/sstv_decode.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/sstv_decode.sh b/groundstation/sstv_decode.sh index b539d2b0..7c3f64aa 100755 --- a/groundstation/sstv_decode.sh +++ b/groundstation/sstv_decode.sh @@ -15,6 +15,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_tcp &>/dev/null sudo killall -9 java &>/dev/null From 50cee71fb188742e89c5c85a00028ed8e0893591 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:24:54 -0400 Subject: [PATCH 14/26] Update aprs-cubesatsim.sh pkill firefox --- groundstation/aprs-cubesatsim.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/aprs-cubesatsim.sh b/groundstation/aprs-cubesatsim.sh index f71a70e3..dfc30e03 100755 --- a/groundstation/aprs-cubesatsim.sh +++ b/groundstation/aprs-cubesatsim.sh @@ -9,6 +9,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null From 7c2dc051627a3b7c1e4f01c29c9ab4bd983bc35f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:25:38 -0400 Subject: [PATCH 15/26] Update rtl-tcp-d.sh pkill firefox --- groundstation/rtl-tcp-d.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/rtl-tcp-d.sh b/groundstation/rtl-tcp-d.sh index b19539b7..2bda312a 100755 --- a/groundstation/rtl-tcp-d.sh +++ b/groundstation/rtl-tcp-d.sh @@ -23,6 +23,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 java &>/dev/null sudo killall -9 rtl_fm &>/dev/null From 94ab6b4b40d192a19ccbb6a8bf9dfd7b5321dab0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:26:33 -0400 Subject: [PATCH 16/26] Update chromium.desktop x-www-browser --- groundstation/autostart/chromium.desktop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/autostart/chromium.desktop b/groundstation/autostart/chromium.desktop index 5fd6bef0..f6e74ffd 100644 --- a/groundstation/autostart/chromium.desktop +++ b/groundstation/autostart/chromium.desktop @@ -1,5 +1,5 @@ [Desktop Entry] Type=Application -Name=Chromium with WebSDR -Exec=chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars --app=http://localhost:8073 +Name=Browser with WebSDR +Exec=x-www-browser http://localhost:8073/ From bb2e0e414adfd161fcc9cd3b82af33ae0104bd12 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:38:31 -0400 Subject: [PATCH 17/26] Update sdrpp.sh pkill firefox --- groundstation/sdrpp.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/sdrpp.sh b/groundstation/sdrpp.sh index 2dd97fd1..e8f83e3e 100755 --- a/groundstation/sdrpp.sh +++ b/groundstation/sdrpp.sh @@ -15,6 +15,8 @@ sudo systemctl stop rtl_tcp pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null From 7aa52a6dfafbce472eaea71d3697594582f8ea30 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 11:44:34 -0400 Subject: [PATCH 18/26] Update pacsat.sh add pkill firefox --- groundstation/pacsat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 85db5762..6d28d815 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -186,6 +186,8 @@ sudo systemctl stop rtl_tcp >/dev/null 2>&1 pkill -o chromium &>/dev/null +pkill -o firefox &>/dev/null + sudo killall -9 rtl_fm &>/dev/null #sudo killall -9 direwolf &>/dev/null From 5a3f90710d98780ee849a4ef5d81413c94e53f69 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 13:14:14 -0400 Subject: [PATCH 19/26] Update pacsat.sh add rtl loopback --- groundstation/pacsat.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 6d28d815..97f1c478 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -36,6 +36,15 @@ else soundcard=0 fi +gpio -g mode 12 up + if [[ $(gpio -g read 12 | grep 0) ]] ; then + echo "LPF is present" + lpf=1 +else + echo "LPF not present" + lpf=0 +fi + gpio -g mode 7 up if [[ $(gpio -g read 7 | grep 0) ]] ; then echo "TXC is present" @@ -213,6 +222,20 @@ sudo killall -9 zenity &>/dev/null sudo usermod -a -G gpio pi +if [ "$lpf" = "0" ] && [ "$txc" = "0" ] ; then + loopback=1 + + value=`aplay -l | grep "Loopback"` + echo "$value" > /dev/null + set -- $value + + #rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 + rtl_fm -M fm -f $rxfrequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -r 48000 -t raw -f S16_LE -c 1 + + rtl_fm -M fm -f $rxfrequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 & + +fi + if [ "$loopback" = "1" ] ; then echo "Using Audio Loopback" From dfde8d18b4f188a79d1343908e3befbcece5e56e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 13:18:07 -0400 Subject: [PATCH 20/26] Update pacsat.sh add extra timeout 1 --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 97f1c478..9baaaed3 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -53,7 +53,7 @@ else echo "TXC not present" txc=0 - timeout 1 rtl_test &> out.txt + timeout 1 timeout 1 rtl_test &> out.txt if [[ $(grep "No supported" out.txt) ]] ; then echo "No RTL-SDR detected" rtl=0 From 421566cec53462beacf629bb75537ffc32b50660 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 13:30:40 -0400 Subject: [PATCH 21/26] Update pacsat.sh frequency in Hz --- groundstation/pacsat.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 9baaaed3..e61d3fc1 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -164,6 +164,7 @@ set -- $value callsign="$1" txfrequency="$7e3" rxfrequency="$8e3" +frequency="$8e6" echo -n "Callsign is " echo $callsign @@ -230,9 +231,9 @@ if [ "$lpf" = "0" ] && [ "$txc" = "0" ] ; then set -- $value #rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 - rtl_fm -M fm -f $rxfrequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -r 48000 -t raw -f S16_LE -c 1 + rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -r 48000 -t raw -f S16_LE -c 1 - rtl_fm -M fm -f $rxfrequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 & + rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 & fi From 71746d8beb3072747b72894e79b17176edde37c0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 16:50:36 -0400 Subject: [PATCH 22/26] Update config make -g reset everything and not always shutdown --- config | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/config b/config index b5917680..e8720aff 100755 --- a/config +++ b/config @@ -1442,6 +1442,8 @@ elif [ "$1" = "-g" ]; then sudo rm /home/pi/CubeSatSim/failure_mode.txt > /dev/null 2>&1 + sudo rm /home/pi/CubeSatSim/transmit_dtmf + sudo systemctl stop cubesatsim sudo systemctl stop transmit sudo systemctl stop command @@ -1455,7 +1457,13 @@ elif [ "$1" = "-g" ]; then cat /dev/null > ~/.bash_history && history -c - sudo shutdown now + if [ "$noreboot" = "0" ] ; then + sudo shutdown now + else + echo + echo "Shutdown or reboot to complete the operation." + echo + fi # reboot=1 else @@ -1812,16 +1820,19 @@ elif [ "$1" = "-G" ]; then reboot=1 sudo echo "p" > /home/pi/CubeSatSim/.mode -# if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then -# FILE=/home/pi/CubeSatSim/battery_saver -# if [ -f "$FILE" ]; then -# restart=1 -# else -# reboot=1 -# fi -# else -# restart=1 -# fi + + if [ "${7}" != "434.9" ]; then + echo "The default transmit frequency of 434.9 MHz is NOT set." + echo + echo "Do you want to change the transmit frequency (for example to 434.9 MHz)?" + + read input + echo + + if [ "$input" = "y" ] || [ "$input" = "yes" ] ; then + /home/pi/CubeSatSim/config -F n + fi + fi elif [ "$1" = "-I" ]; then From 592dc6929692befef3dfae3e946e1bd6c79120b5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 16:58:26 -0400 Subject: [PATCH 23/26] Update config for -g reset pacsat and ground station settings --- config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config b/config index e8720aff..3fd7ee70 100755 --- a/config +++ b/config @@ -1424,7 +1424,7 @@ elif [ "$1" = "-g" ]; then if [ "$rset" = "y" ] || [ "$rset" = "yes" ] ; then - echo "Resetting and shutting down." + echo "Resetting" echo "AMSAT 0 0 0 no 3 434.9 435 no 0 0" > /home/pi/CubeSatSim/sim.cfg @@ -1457,7 +1457,15 @@ elif [ "$1" = "-g" ]; then cat /dev/null > ~/.bash_history && history -c + sudo systemctl stop pacsatsim &>/dev/null + sudo rm -r /home/pi/PacSat + + sudo rm -r /home/pi/PacSatGround + + sudo rm -r /home/pi/PacSatGroundLoop + if [ "$noreboot" = "0" ] ; then + echo "Shutting down." sudo shutdown now else echo From 4fc65dfa4e59185e6092fb8aae2335b05275c540 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 17:10:57 -0400 Subject: [PATCH 24/26] Update config fix tx check in -G --- config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config b/config index 3fd7ee70..50901a62 100755 --- a/config +++ b/config @@ -1829,7 +1829,7 @@ elif [ "$1" = "-G" ]; then reboot=1 sudo echo "p" > /home/pi/CubeSatSim/.mode - if [ "${7}" != "434.9" ]; then + if [ "${7}" != "434.9" ] && [ "${7}" != "434.900" ] ; then echo "The default transmit frequency of 434.9 MHz is NOT set." echo echo "Do you want to change the transmit frequency (for example to 434.9 MHz)?" From 445fd85fdab65aa4322a58a9d7ebe5489fe7d4fc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 17:14:23 -0400 Subject: [PATCH 25/26] Update config fix -G freq check --- config | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/config b/config index 50901a62..26605140 100755 --- a/config +++ b/config @@ -1829,6 +1829,10 @@ elif [ "$1" = "-G" ]; then reboot=1 sudo echo "p" > /home/pi/CubeSatSim/.mode + value=`cat /home/pi/CubeSatSim/sim.cfg` + echo "$value" > /dev/null + set -- $value + if [ "${7}" != "434.9" ] && [ "${7}" != "434.900" ] ; then echo "The default transmit frequency of 434.9 MHz is NOT set." echo @@ -1874,18 +1878,6 @@ elif [ "$1" = "-I" ]; then fi fi - -# if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then -# FILE=/home/pi/CubeSatSim/battery_saver -# if [ -f "$FILE" ]; then -# restart=1 -# else -# reboot=1 -# fi -# else -# restart=1 -# fi - elif [ "$1" = "-k" ]; then echo From a2d872f9be9f62a41361ecaa735f0d106aee0c31 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 2 Jun 2026 17:23:35 -0400 Subject: [PATCH 26/26] Update config add > /dev/null 2>&1 to rm in -g --- config | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config b/config index 26605140..5c3ca9eb 100755 --- a/config +++ b/config @@ -1442,7 +1442,7 @@ elif [ "$1" = "-g" ]; then sudo rm /home/pi/CubeSatSim/failure_mode.txt > /dev/null 2>&1 - sudo rm /home/pi/CubeSatSim/transmit_dtmf + sudo rm /home/pi/CubeSatSim/transmit_dtmf > /dev/null 2>&1 sudo systemctl stop cubesatsim sudo systemctl stop transmit @@ -1453,16 +1453,16 @@ elif [ "$1" = "-g" ]; then sudo journalctl --rotate sudo journalctl --vacuum-time=1s - rm -rf ~/.config/chromium/Singleton* + rm -rf ~/.config/chromium/Singleton* > /dev/null 2>&1 cat /dev/null > ~/.bash_history && history -c sudo systemctl stop pacsatsim &>/dev/null - sudo rm -r /home/pi/PacSat + sudo rm -r /home/pi/PacSat > /dev/null 2>&1 - sudo rm -r /home/pi/PacSatGround + sudo rm -r /home/pi/PacSatGround > /dev/null 2>&1 - sudo rm -r /home/pi/PacSatGroundLoop + sudo rm -r /home/pi/PacSatGroundLoop > /dev/null 2>&1 if [ "$noreboot" = "0" ] ; then echo "Shutting down."