diff mbox

[OpenWrt-Devel,procd] hotplug: add BUTTON to environment vars for timeout action

Message ID 1441116085-32538-1-git-send-email-guenther.kelleter@devolo.de
State Accepted
Headers show

Commit Message

Günther Kelleter Sept. 1, 2015, 2:01 p.m. UTC
as done in pressed and released actions

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
---
 plug/hotplug.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/plug/hotplug.c b/plug/hotplug.c
index 0c97e4d..b5ebd07 100644
--- a/plug/hotplug.c
+++ b/plug/hotplug.c
@@ -399,6 +399,7 @@  static void handle_button_timeout(struct uloop_timeout *t)
 
 	b = container_of(t, struct button_timeout, timeout);
 	blob_buf_init(&button_buf, 0);
+	blobmsg_add_string(&button_buf, "BUTTON", b->name);
 	blobmsg_add_string(&button_buf, "ACTION", "timeout");
 	snprintf(seen, sizeof(seen), "%d", b->seen);
 	blobmsg_add_string(&button_buf, "SEEN", seen);