Skip to content
Snippets Groups Projects
Unverified Commit adcedf15 authored by Tom Herbers's avatar Tom Herbers
Browse files

package/gluon-respondd: add target information


For most devices it's quite clear which target they belong to via external information.

For x86 hoewer it's not visible from the outside (besides during upgrades via webserver logs)
to which target a device belongs to.

This is relevant to see for example how many devices are using x86-generic vs. x86-64.

Co-authored-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
parent 5dc5301a
Branches
Tags
No related merge requests found
...@@ -101,6 +101,9 @@ struct json_object * respondd_provider_nodeinfo(void) { ...@@ -101,6 +101,9 @@ struct json_object * respondd_provider_nodeinfo(void) {
struct json_object *software_firmware = json_object_new_object(); struct json_object *software_firmware = json_object_new_object();
json_object_object_add(software_firmware, "base", gluon_version()); json_object_object_add(software_firmware, "base", gluon_version());
json_object_object_add(software_firmware, "release", gluonutil_wrap_and_free_string(gluonutil_read_line("/lib/gluon/release"))); json_object_object_add(software_firmware, "release", gluonutil_wrap_and_free_string(gluonutil_read_line("/lib/gluon/release")));
json_object_object_add(software_firmware, "target", gluonutil_wrap_string(platforminfo_get_target()));
json_object_object_add(software_firmware, "subtarget", gluonutil_wrap_string(platforminfo_get_subtarget()));
json_object_object_add(software_firmware, "image_name", gluonutil_wrap_string(platforminfo_get_image_name()));
json_object_object_add(software, "firmware", software_firmware); json_object_object_add(software, "firmware", software_firmware);
json_object_object_add(ret, "software", software); json_object_object_add(ret, "software", software);
......
  • Nico @nrb

    mentioned in commit ca9dcd5b

    ·

    mentioned in commit ca9dcd5b

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment