From 81c04eebcb13ce768c0a21130df2b2349f4e763f Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 26 May 2024 14:33:47 +0200 Subject: [PATCH] v9.5 - APT | Add URL components for 64-bit Amlogic SoC SBCs --- .update/patches | 8 ++++++++ dietpi/func/dietpi-set_software | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/.update/patches b/.update/patches index 78c8cedce3..437ad34f01 100755 --- a/.update/patches +++ b/.update/patches @@ -1631,6 +1631,14 @@ _EOF_ Patch_9_5() { + # Update DietPi APT list for several SBCs we added components to our repo for + if [[ $PATCH_9_3_RAN == 0 && $G_HW_MODEL =~ ^(12|15|16|54|74)$ ]] + then + /boot/dietpi/func/dietpi-set_software apt-mirror dietpi + G_AGUP + G_AGUG + fi + # Update MPD flag on Bookworm and above: https://github.com/MusicPlayerDaemon/MPD/commit/ce77b14 (( $G_DISTRO > 6 )) && [[ -f '/etc/systemd/system/mpd.service.d/dietpi.conf' ]] && G_EXEC sed -i 's/no-daemon/systemd/' /etc/systemd/system/mpd.service.d/dietpi.conf diff --git a/dietpi/func/dietpi-set_software b/dietpi/func/dietpi-set_software index 0b6631f002..5479c79b77 100755 --- a/dietpi/func/dietpi-set_software +++ b/dietpi/func/dietpi-set_software @@ -124,6 +124,9 @@ $FP_SCRIPT rpi_kernel_choice Supported on Debian Bookworm or newer on R [0-9]) all_components='rpi';; 10) all_components='odroidc1';; 11) all_components='odroidxu4';; + 12) all_components='odroidc2';; + 15) all_components='odroidn2';; + 16) all_components='odroidc4';; 40) all_components='pinea64';; 44) all_components='pinebook';; 45) all_components='pineh64';; @@ -146,6 +149,7 @@ $FP_SCRIPT rpi_kernel_choice Supported on Debian Bookworm or newer on R ;; esac ;; + 54) all_components='nanopik2';; 56) all_components='nanopineo3';; 57) all_components='nanopineoplus2';; 59) all_components='zeropi';; @@ -190,6 +194,7 @@ $FP_SCRIPT rpi_kernel_choice Supported on Debian Bookworm or newer on R 66) all_components='nanopim1plus';; 67) all_components='nanopik1plus';; 70) all_components='sparkysbc';; + 74) all_components='radxazero';; 76) # Detect variant either based on $HW_VARIANT environment variable, existing "all" components or installed U-Boot package # shellcheck disable=SC2154