luci-app-attendedsysupgrade: rework check-for-new-firmware
authorEric Fahlgren <redacted>
Fri, 23 Jan 2026 00:12:33 +0000 (16:12 -0800)
committerPaul Donald <redacted>
Fri, 23 Jan 2026 03:18:35 +0000 (04:18 +0100)
commit2aa6aba3bced9c38bf4ddd028663d9221c83ca80
tree34b1ff371d8eda858bc32eda101a71eba59febd6
parent720c96ce5b85583c8c6db6ef31857dc8a3eeb600
luci-app-attendedsysupgrade: rework check-for-new-firmware

Do a complete overhaul of the firmware check:

When the Status -> Overview page is loaded, we check if the
configuration is set.  If not, we ask the user to choose between
enabled or disabled.  Once this is done, it never appears again
(much like the "set password" logic in the shell).

As a result, there is no longer a persistent section on the Overview
page with a simple toggle eating real estate and playing havoc with
the Hide/Show button scheme.

When the setting is enabled, then every time Status -> Overview
is loaded, we do the firmware check and display an alert notice
as before.  But, the alert notice now contains a button to disable
the alerts, so navigation is still simple, you don't have to dig
around to figure out how to turn it off.

The logic for version comparisons was cleaned up and simplified.

Fixes: #7925
Fixes: #8226
Signed-off-by: Eric Fahlgren <redacted>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/status/include/11_upgrades.js
applications/luci-app-attendedsysupgrade/root/etc/uci-defaults/95-luci-app-attendedsysupgrade-housekeeping [new file with mode: 0755]
git clone https://git.99rst.org/PROJECT