summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-03-01 12:12:45 +0600
committerLibravatar Mubashshir <ahm@jadupc.com>2023-03-01 12:16:01 +0600
commit9b0c16061a9925f7ea9d648d22904c9eeba7535b (patch)
tree7dcef69f0a420b018e0478214ff3f23df8949bf4
parentdab81219994c70025114a9b5f72ca844bbb7c6ea (diff)
downloadpatches-9b0c16061a9925f7ea9d648d22904c9eeba7535b.tar.gz
patches-9b0c16061a9925f7ea9d648d22904c9eeba7535b.zip
Add script for converting armbian to shopno os
Signed-off-by: Mubashshir <ahm@jadupc.com>
-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