blob: e814586c4e7bb40020888cd3cda01ac2fd935be7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/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
cd "$SWDIR"
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
if dpkg -s armbian-bullseye-desktop-xfce > /dev/null 2>&1; then
apt purge -y armbian-bullseye-desktop-xfce
fi
apt install -y base-files distro-info-data-shopno python-apt-common-shopno
|