summaryrefslogtreecommitdiff
path: root/util-linux/acpid.c
diff options
context:
space:
mode:
authorPere Orga2011-04-11 03:29:49 +0200
committerDenys Vlasenko2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /util-linux/acpid.c
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
busybox-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/acpid.c')
-rw-r--r--util-linux/acpid.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c
index ce4c98e..c9eed2a 100644
--- a/util-linux/acpid.c
+++ b/util-linux/acpid.c
@@ -6,6 +6,30 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+
+//usage:#define acpid_trivial_usage
+//usage: "[-d] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]"
+//usage:#define acpid_full_usage "\n\n"
+//usage: "Listen to ACPI events and spawn specific helpers on event arrival\n"
+//usage: "\nOptions:"
+//usage: "\n -c DIR Config directory [/etc/acpi]"
+//usage: "\n -d Don't daemonize, (implies -f)"
+//usage: "\n -e FILE /proc event file [/proc/acpi/event]"
+//usage: "\n -f Run in foreground"
+//usage: "\n -l FILE Log file [/var/log/acpid.log]"
+//usage: "\n -p FILE Pid file [/var/run/acpid.pid]"
+//usage: "\n -a FILE Action file [/etc/acpid.conf]"
+//usage: "\n -M FILE Map file [/etc/acpi.map]"
+//usage: IF_FEATURE_ACPID_COMPAT(
+//usage: "\n\nAccept and ignore compatibility options -g -m -s -S -v"
+//usage: )
+//usage:
+//usage:#define acpid_example_usage
+//usage: "Without -e option, acpid uses all /dev/input/event* files\n"
+//usage: "# acpid\n"
+//usage: "# acpid -l /var/log/my-acpi-log\n"
+//usage: "# acpid -e /proc/acpi/event\n"
+
#include "libbb.h"
#include <syslog.h>
#include <linux/input.h>