summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Kelleter <guenther.kelleter@devolo.de>2015-09-01 16:01:25 +0200
committerJohn Crispin <blogic@openwrt.org>2015-09-15 07:10:25 +0200
commit03ad6c7fee3d829e1bb541a8d79891d83c00fff1 (patch)
tree282fe6fab9c627812f826c5c75127c4dbdc96dc1
parent0da5bf2ff222d1a499172a6e09507388676b5a08 (diff)
downloadunitd-03ad6c7fee3d829e1bb541a8d79891d83c00fff1.tar
unitd-03ad6c7fee3d829e1bb541a8d79891d83c00fff1.zip
hotplug: add BUTTON to environment vars for timeout action
as done in pressed and released actions Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
-rw-r--r--plug/hotplug.c1
1 files changed, 1 insertions, 0 deletions
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);