summaryrefslogtreecommitdiff
path: root/patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch')
-rw-r--r--patch/armbian2shopno25
1 files changed, 25 insertions, 0 deletions
diff --git a/patch/armbian2shopno b/patch/armbian2shopno
new file mode 100644
index 0000000..dc77a7b
--- /dev/null
+++ b/patch/armbian2shopno
@@ -0,0 +1,25 @@
+#!/bin/sh
+if [ "$(id -u)" -gt 0 ]; then
+ echo "Run with sudo..." >&2
+ exit
+fi
+
+SWDIR="$(mktemp -d /tmp/.a2s.XXXXXXXXX)"
+trap 'rm -rf "$SWDIR"' TERM INT QUIT EXIT
+
+apt install curl
+
+file="$(
+ curl --disable -sL https://builder.jadupc.com/deb/pool/main/j/jadupc-archive-keyring/ |
+ grep -oEm1 'jadupc-archive-keyring_[0-9]{4}\.[0-9]{1,2}\.[0-9]{1,2}_all\.deb' | sort -u
+)"
+
+curl --disable -sL# "https://builder.jadupc.com/deb/pool/main/j/jadupc-archive-keyring/$file" -o keyring.deb
+dpkg -i keyring.deb
+
+cat > /etc/apt/sources.list.d/jadupc.list << EOF
+deb http://builder.jadupc.com/deb shopno main tanix-tx6
+EOF
+
+apt update
+apt purge -y armbian-bullseye-desktop-xfce