diff --git a/config/distributions/bookworm/order b/config/distributions/bookworm/order new file mode 100644 index 000000000..b8626c4cf --- /dev/null +++ b/config/distributions/bookworm/order @@ -0,0 +1 @@ +4 diff --git a/config/distributions/bullseye/order b/config/distributions/bullseye/order new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/config/distributions/bullseye/order @@ -0,0 +1 @@ +3 diff --git a/config/distributions/buster/order b/config/distributions/buster/order new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/config/distributions/buster/order @@ -0,0 +1 @@ +1 diff --git a/config/distributions/focal/order b/config/distributions/focal/order new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/config/distributions/focal/order @@ -0,0 +1 @@ +2 diff --git a/config/distributions/jammy/order b/config/distributions/jammy/order new file mode 100644 index 000000000..7ed6ff82d --- /dev/null +++ b/config/distributions/jammy/order @@ -0,0 +1 @@ +5 diff --git a/config/distributions/noble/order b/config/distributions/noble/order new file mode 100644 index 000000000..1e8b31496 --- /dev/null +++ b/config/distributions/noble/order @@ -0,0 +1 @@ +6 diff --git a/config/distributions/oracular/order b/config/distributions/oracular/order new file mode 100644 index 000000000..45a4fb75d --- /dev/null +++ b/config/distributions/oracular/order @@ -0,0 +1 @@ +8 diff --git a/config/distributions/sid/order b/config/distributions/sid/order new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/config/distributions/sid/order @@ -0,0 +1 @@ +9 diff --git a/config/distributions/trixie/order b/config/distributions/trixie/order new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/config/distributions/trixie/order @@ -0,0 +1 @@ +7 diff --git a/lib/functions/bsp/armbian-bsp-cli-deb.sh b/lib/functions/bsp/armbian-bsp-cli-deb.sh index 77d70031a..e99d6b7da 100644 --- a/lib/functions/bsp/armbian-bsp-cli-deb.sh +++ b/lib/functions/bsp/armbian-bsp-cli-deb.sh @@ -174,7 +174,7 @@ function compile_armbian-bsp-cli() { # copy distribution support and upgrade status # this information is used in motd to show status and within armbian-config to perform upgrades - local releases=($(find ${SRC}/config/distributions -mindepth 1 -maxdepth 1 -type d)) + local releases=($(find ${SRC}/config/distributions -iname '*order*' -exec echo {} \; -exec cat {} \; | xargs -n2 -d'\n' | sort -nk2 | sed "s/\/order.*//g")) for i in "${releases[@]}"; do echo "$(echo $i | sed 's/.*\///')=$(cat $i/support)$(echo ";upgrade" | sed 's/.*\///')=$(cat $i/upgrade)" >> "${destination}"/etc/armbian-distribution-status done