From d582c9a9d7149489e8a7c113d9616e1d8b749632 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 11 Apr 2024 18:14:29 +0200 Subject: [PATCH] Send kernel information on sysupgrade --- .../root/www/luci-static/resources/sysupgrade.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luci-app-sysupgrade/root/www/luci-static/resources/sysupgrade.js b/luci-app-sysupgrade/root/www/luci-static/resources/sysupgrade.js index 64c751dda..20c4c39d0 100644 --- a/luci-app-sysupgrade/root/www/luci-static/resources/sysupgrade.js +++ b/luci-app-sysupgrade/root/www/luci-static/resources/sysupgrade.js @@ -64,6 +64,7 @@ function setup() { ubus_call("rpc-sys", "packagelist", {}, "packages"); ubus_call("system", "board", {}, "release"); ubus_call("system", "board", {}, "board_name"); + ubus_call("system", "board", {}, "kernel"); ubus_call("system", "info", {}, "memory"); ubus_call("openmptcprouter", "getrootfs", {}, "format"); ubus_call("openmptcprouter", "getefi", {}, "efi_enabled"); @@ -231,6 +232,7 @@ function upgrade_request() { // add board info to let server determine profile request_dict.target = data.release.target request_dict.profile = data.board_name + request_dict.kernel = data.kernel request_dict.rootfs = data.format request_dict.efi = data.efi_enabled