procd: switch buttons to the new "button" hotplug handler
authorRafał Miłecki <zajec5@gmail.com>
Mon, 10 Aug 2015 22:48:07 +0000 (22:48 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 10 Aug 2015 22:48:07 +0000 (22:48 +0000)
This allows requesting "timeout" ACTION in script by returning a
positive value.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46580

package/system/procd/files/hotplug.json

index d57401958158f136f289ae397d0e54f66ba7aef2..27b4836ec04aa33222735da6ee6b2a45f3ef5eee 100644 (file)
@@ -66,7 +66,7 @@
                        [ "has", "BUTTON" ],
                        [ "eq", "SUBSYSTEM", "button" ],
                ],
-               [ "exec", "/etc/rc.button/%BUTTON%" ]
+               [ "button", "/etc/rc.button/%BUTTON%" ]
        ],
        [ "if",
                [ "eq", "SUBSYSTEM",