summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Spooren <paul@spooren.de>2017-08-10 17:26:15 +0200
committerPaul Spooren <paul@spooren.de>2017-08-13 17:53:28 +0200
commit47a36e0af9e8054bbeb4320f1a0e85f1c9ecbeba (patch)
treecc60aa6edbea4dbc547194d19e9bea2c7c90c6fa
parent5b8a7652af6877e668badd976f84d030832f1b88 (diff)
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>
-rw-r--r--applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm2
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm
index 9160674e58..ea97e9a519 100644
--- a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm
+++ b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm
@@ -90,6 +90,7 @@ function setup() {
ubus_request("packagelist", "list", '{ }', "packagelist")
ubus_request("system", "board", '{ }', "release")
ubus_request("system", "board", '{ }', "board_name")
+ ubus_request("system", "board", '{ }', "model")
ubus_request("uci", "get", '{"config": "attendedsysupgrade", "section": "@settings[0]", "option": "update_server"}', "update_server")
}
@@ -188,6 +189,7 @@ function image_request() {
request_dict.version = latest_version;
request_dict.board = data.board_name
request_dict.packages = data.packages;
+ request_dict.model = data.model
server_request(request_dict, "image-request", image_request_handler)
}