diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 11:46:32 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 11:46:32 +0100 |
commit | dd898c9f3388fca1d7339a45150fbb7406de0971 (patch) | |
tree | f9f498c9d86c26bd208acc687c5f29b451927ce3 /util-linux/acpid.c | |
parent | e5dd71f94f8691c41382b89de35088695cca34b9 (diff) | |
download | busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.gz busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.bz2 busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.zip |
Convert all util-linux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/acpid.c')
-rw-r--r-- | util-linux/acpid.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c index 0f2cb6bdc..3e68b61ab 100644 --- a/util-linux/acpid.c +++ b/util-linux/acpid.c | |||
@@ -6,6 +6,32 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | //config:config ACPID | ||
10 | //config: bool "acpid" | ||
11 | //config: default y | ||
12 | //config: select PLATFORM_LINUX | ||
13 | //config: help | ||
14 | //config: acpid listens to ACPI events coming either in textual form from | ||
15 | //config: /proc/acpi/event (though it is marked deprecated it is still widely | ||
16 | //config: used and _is_ a standard) or in binary form from specified evdevs | ||
17 | //config: (just use /dev/input/event*). | ||
18 | //config: | ||
19 | //config: It parses the event to retrieve ACTION and a possible PARAMETER. | ||
20 | //config: It then spawns /etc/acpi/<ACTION>[/<PARAMETER>] either via run-parts | ||
21 | //config: (if the resulting path is a directory) or directly as an executable. | ||
22 | //config: | ||
23 | //config: N.B. acpid relies on run-parts so have the latter installed. | ||
24 | //config: | ||
25 | //config:config FEATURE_ACPID_COMPAT | ||
26 | //config: bool "Accept and ignore redundant options" | ||
27 | //config: default y | ||
28 | //config: depends on ACPID | ||
29 | //config: help | ||
30 | //config: Accept and ignore compatibility options -g -m -s -S -v. | ||
31 | |||
32 | //applet:IF_ACPID(APPLET(acpid, BB_DIR_SBIN, BB_SUID_DROP)) | ||
33 | |||
34 | //kbuild:lib-$(CONFIG_ACPID) += acpid.o | ||
9 | 35 | ||
10 | //usage:#define acpid_trivial_usage | 36 | //usage:#define acpid_trivial_usage |
11 | //usage: "[-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]" | 37 | //usage: "[-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]" |