ubus: display script data when dumping node info
authorFelix Fietkau <nbd@nbd.name>
Mon, 5 Jul 2021 13:51:10 +0000 (15:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 6 Jul 2021 09:10:47 +0000 (11:10 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ubus.c

diff --git a/ubus.c b/ubus.c
index ef448917de2847078f3cab5f6dd6377bf60d2d71..8c6711a73bd72f8353411f8c4610e638028edd2d 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -281,6 +281,11 @@ usteer_dump_node_info(struct usteer_node *node)
                blobmsg_add_field(&b, BLOBMSG_TYPE_ARRAY, "rrm_nr",
                                  blobmsg_data(node->rrm_nr),
                                  blobmsg_data_len(node->rrm_nr));
+       if (node->script_data)
+               blobmsg_add_field(&b, BLOBMSG_TYPE_TABLE, "script_data",
+                                 blob_data(node->script_data),
+                                 blob_len(node->script_data));
+
        blobmsg_close_table(&b, c);
 }