diff options
| author | Souf Oued <souf_oued@yahoo.fr> | 2010-09-26 12:40:05 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-09-26 12:40:05 +0200 |
| commit | ccb7a4390004e3c32fbf93e93474fc124bcd17be (patch) | |
| tree | f33697c6ecb8ddf2e265f123391e81b2bb6c5547 /include | |
| parent | 7d3a48a003cd645edfae2b404493688022b13193 (diff) | |
| download | busybox-w32-ccb7a4390004e3c32fbf93e93474fc124bcd17be.tar.gz busybox-w32-ccb7a4390004e3c32fbf93e93474fc124bcd17be.tar.bz2 busybox-w32-ccb7a4390004e3c32fbf93e93474fc124bcd17be.zip | |
acpid: add config file and map file
function old new delta
acpid_main 434 1137 +703
find_action - 204 +204
f_evt_tab - 48 +48
packed_usage 27724 27755 +31
f_act_tab - 16 +16
process_event 126 - -126
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/0 up/down: 1002/-126) Total: 876 bytes
Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/usage.src.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index 2866bdbba..922774674 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
| @@ -18,21 +18,27 @@ | |||
| 18 | INSERT | 18 | INSERT |
| 19 | 19 | ||
| 20 | #define acpid_trivial_usage \ | 20 | #define acpid_trivial_usage \ |
| 21 | "[-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE]..." | 21 | "[-d] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]" |
| 22 | #define acpid_full_usage "\n\n" \ | 22 | #define acpid_full_usage "\n\n" \ |
| 23 | "Listen to ACPI events and spawn specific helpers on event arrival\n" \ | 23 | "Listen to ACPI events and spawn specific helpers on event arrival\n" \ |
| 24 | "\nOptions:" \ | 24 | "\nOptions:" \ |
| 25 | "\n -d Don't daemonize, log to stderr" \ | ||
| 26 | "\n -c DIR Config directory [/etc/acpi]" \ | 25 | "\n -c DIR Config directory [/etc/acpi]" \ |
| 26 | "\n -d Don't daemonize, (implies -f)" \ | ||
| 27 | "\n -e FILE /proc event file [/proc/acpi/event]" \ | 27 | "\n -e FILE /proc event file [/proc/acpi/event]" \ |
| 28 | "\n -l FILE Log file [/var/log/acpid]" \ | 28 | "\n -f Run in foreground" \ |
| 29 | "\n -l FILE Log file [/var/log/acpid.log]" \ | ||
| 30 | "\n -p FILE Pid file [/var/run/acpid.pid]" \ | ||
| 31 | "\n -a FILE Action file [/etc/acpid.conf]" \ | ||
| 32 | "\n -M FILE Map file [/etc/acpi.map]" \ | ||
| 29 | IF_FEATURE_ACPID_COMPAT( \ | 33 | IF_FEATURE_ACPID_COMPAT( \ |
| 30 | "\n\nAccept and ignore compatibility options -g -m -s -S -v" \ | 34 | "\n\nAccept and ignore compatibility options -g -m -s -S -v" \ |
| 31 | ) | 35 | ) |
| 32 | 36 | ||
| 33 | #define acpid_example_usage \ | 37 | #define acpid_example_usage \ |
| 38 | "Without -e option, acpid uses all /dev/input/event* files\n" \ | ||
| 39 | "# acpid\n" \ | ||
| 34 | "# acpid -l /var/log/my-acpi-log\n" \ | 40 | "# acpid -l /var/log/my-acpi-log\n" \ |
| 35 | "# acpid -d /dev/input/event*\n" | 41 | "# acpid -e /proc/acpi/event\n" |
| 36 | 42 | ||
| 37 | #define addgroup_trivial_usage \ | 43 | #define addgroup_trivial_usage \ |
| 38 | "[-g GID] " IF_FEATURE_ADDUSER_TO_GROUP("[USER] ") "GROUP" | 44 | "[-g GID] " IF_FEATURE_ADDUSER_TO_GROUP("[USER] ") "GROUP" |
