summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-attendedsysupgrade/htdocs
AgeCommit message (Collapse)Author
2021-05-05luci-app-attendedsysupgrade: fix branch detectionPaul Spooren
The running branch determines which upgrades are suggested. A jump to a newer branch (e.g. 19.07.8 to 21.02.1) is only suggested if the advanced mode is enable, since it may break the router. OpenWrt versions end in either `-SNAPSHOT`, `.X-rcY` or `.x`. All these suffixes are removed, resulting in the branch name. Previously the `-SNAPSHOT` suffix wasn't removed resulting in wrong branch names. Also clean up some log spam. Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-04-29luci-app-attendedsysupgrade: hide branch updatePaul Spooren
Branch updates (e.g. 19.07 to 21.02) are risky and shouldn't be suggested by default. Hide those unless the advanced mode is enabled. Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-04-26luci-app-attendedsysupgrade: add target in reuqestPaul Spooren
The updated ASU api requires `target` within reuqests since the `profile` or `board_name` is never truely unique. This is especially a problem for x86 devices which mostly use `generic` as profile name. Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-07luci-app-attendedsysupgrade: Render on clientPaul Spooren
Use new LuCI JavaScript code instead of a mix of Lua and JS. Signed-off-by: Paul Spooren <mail@aparcar.org>