From bcca823f1100c29340e81ef77a86220e6a1c1e45 Mon Sep 17 00:00:00 2001 From: macie Date: Sat, 8 Feb 2025 12:35:41 +0100 Subject: [PATCH 1/2] feat: Detect OpenWrt OS HARDWARE value is a name of compilation target (SoC type). This will simplify selection of proper installer version for OS upgrade. --- include/osdetection | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/osdetection b/include/osdetection index 7a2e4bf1..ac9a9c86 100644 --- a/include/osdetection +++ b/include/osdetection @@ -407,6 +407,12 @@ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_NAME="openSUSE" ;; + "openwrt") + LINUX_VERSION='OpenWrt' + HARDWARE=$(grep '^OPENWRT_BOARD=' /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_NAME=$(grep '^NAME=' /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION=$(grep '^VERSION=' /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "osmc") LINUX_VERSION="OSMC" LINUX_VERSION_LIKE="Debian" From 285bc2c989a7ee51554a87c168309ffcf9c05530 Mon Sep 17 00:00:00 2001 From: macie Date: Sat, 8 Feb 2025 13:00:17 +0100 Subject: [PATCH 2/2] feat: Add EOL dates for OpenWrt Historically, updates were released up to the end of the month, see: . --- db/software-eol.db | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/db/software-eol.db b/db/software-eol.db index 09932338..6bfa4ada 100644 --- a/db/software-eol.db +++ b/db/software-eol.db @@ -233,6 +233,17 @@ os:OpenBSD 7.0:2022-10-20:1666216800: os:OpenBSD 7.1:2023-05-01:1682892000: os:OpenBSD 7.2::-1 # +# OpenWrt - https://openwrt.org/docs/guide-developer/security#support_status +# +os:OpenWrt 15.05:2016-03-31:1459375200: +os:OpenWrt 17.01:2018-09-30:1538258400: +os:OpenWrt 18.06:2020-12-31:1609369200: +os:OpenWrt 19.07:2022-04-30:1651269600: +os:OpenWrt 21.02:2023-05-31:1685484000: +os:OpenWrt 22.03:2024-07-31:1722376800: +os:OpenWrt 23.05:2025-07-31:1753912800: +os:OpenWrt 24.10:2026-02-28:1772233200: +# # Red Hat Enterprise Linux - https://access.redhat.com/labs/plcc/ # os:Red Hat Enterprise Linux Server release 6:2020-11-30:1606690800: