Skip to content
Snippets Groups Projects
Unverified Commit 4afdc227 authored by Matthias Schiffer's avatar Matthias Schiffer Committed by GitHub
Browse files

Merge pull request #3496 from herbetom/respondd-taget-info

package/gluon-respondd: add target information
parents 5dc5301a adcedf15
No related branches found
No related tags found
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment