summaryrefslogtreecommitdiff
path: root/stage4b/01-install-packages
diff options
context:
space:
mode:
authorhibby <hibby@debian.org>2026-04-21 23:46:11 +0100
committerhibby <hibby@debian.org>2026-04-22 19:21:25 +0100
commite76d6529d4f458d519e9790ded441b98d9c2ff80 (patch)
tree8b29767f6a521f193243a9cecc26fc43bebecd34 /stage4b/01-install-packages
parent4ad56cc850fa60adcc7f07dc15879bc95cc1d281 (diff)
This might be what makes it work
Diffstat (limited to 'stage4b/01-install-packages')
-rw-r--r--stage4b/01-install-packages/00-packages1
-rwxr-xr-xstage4b/01-install-packages/01-run.sh34
2 files changed, 35 insertions, 0 deletions
diff --git a/stage4b/01-install-packages/00-packages b/stage4b/01-install-packages/00-packages
new file mode 100644
index 0000000..430ca03
--- /dev/null
+++ b/stage4b/01-install-packages/00-packages
@@ -0,0 +1 @@
+hamradio-all
diff --git a/stage4b/01-install-packages/01-run.sh b/stage4b/01-install-packages/01-run.sh
new file mode 100755
index 0000000..14c0c78
--- /dev/null
+++ b/stage4b/01-install-packages/01-run.sh
@@ -0,0 +1,34 @@
+#!/bin/bash -e
+
+set -o pipefail
+
+REMOVE_LIST="/tmp/remove-packages.txt"
+
+cat > "$REMOVE_LIST" <<EOF
+svxlink-gpio
+svxlink-server
+svxreflector
+svxlink-calibration-tools
+EOF
+
+# Only remove installed packages
+INSTALLED=$(dpkg-query -W -f='${Package}\n' | grep -Fx -f "$REMOVE_LIST" || true)
+
+if [ -n "$INSTALLED" ]; then
+ apt-get purge -y $INSTALLED
+fi
+
+apt-get autoremove -y
+apt-get clean
+
+rm -f "$REMOVE_LIST"
+
+
+# Pull out svxlink suite as it interferes with soundcards
+apt-get purge -y svxlink-gpio svxlink-server svxreflector svxlink-calibration-tools
+# Clean up orphaned dependencies
+apt-get autoremove -y
+
+# Optional: remove residual config files
+apt-get autoclean
+apt-get clean