Commit graph

8 commits

Author SHA1 Message Date
Paul Spooren
5cdab68f25 luci-app-attendedsysupgrade: use JSON.stringify
now uses JSON.stringify instead of creating pseudo JSON data via
`'{' + variable + '}'`

also simplify uci naming

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-08-14 19:14:52 +02:00
Paul Spooren
47a36e0af9 luci-app-attendedsysupgrade: send model info
as reported [here][1] the board_name is not everywhere unified yet. to
solve this problem, the model name is transported as well and used as a
fallback identifier

[1]: https://github.com/aparcar/gsoc17-attended-sysupgrade/issues/26

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-08-13 17:53:28 +02:00
Paul Spooren
6cc4a22579 luci-app-attendedsysupgrade: add keep-settings opt
add a keep-settings checkbox to the webview
this PR depends on [this][1] PR in openwrt/packages

[1]: https://github.com/openwrt/packages/pull/4689

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-08-13 15:52:28 +02:00
Jo-Philipp Wich
99f7794311 Merge pull request #1290 from aparcar/uhttpd-mod-ubus
luci-app-attendedsysupgrade: add missing dep
2017-08-13 15:05:33 +02:00
Paul Spooren
2f53e30806 luci-app-attendedsysupgrade: show updated packages
since the update server now checks packages for updates the web view
will show all changed package versions. this PR is also important to
support future package transformations of the server

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-08-11 20:58:35 +02:00
Paul Spooren
99958baed5 luci-app-attendedsysupgrade: add missing dep
uhttpd-mod-ubus is missing on some devices where rpcd is installed.
the luci app fundamentally depends on /ubus

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-08-08 16:06:08 +02:00
Paul Spooren
a22f050861 luci-app-attendedsysupgrade: remove leading slash
the slash leads to // redirecting to /. The redirecting causes problems
with CORS [1].

[1]: http://enable-cors.org/

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-08-04 18:09:43 +02:00
Paul Spooren
b90153386c luci-app-attendedsysupgrade: add package
Add a simple luci view in system tab to perform a sysupgrade
with no hassle.

Asks an external update server for upgrades, downloads and
flashes the upgrade.

This packge is the frontend for my current GSoC project:
https://summerofcode.withgoogle.com/projects/#5684958571003904

More code is found here:
https://github.com/aparcar/gsoc17-attended-sysupgrade

Signed-off-by: Paul Spooren <paul@spooren.de>
[jo@mein.io: squash commits, remove PKGARCH from Makefile]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-02 22:28:50 +02:00