From: Günther Kelleter Date: Tue, 1 Sep 2015 14:01:25 +0000 (+0200) Subject: hotplug: add BUTTON to environment vars for timeout action X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03ad6c7fee3d829e1bb541a8d79891d83c00fff1;p=oweals%2Fprocd.git hotplug: add BUTTON to environment vars for timeout action as done in pressed and released actions Signed-off-by: Günther Kelleter --- 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);