acpid: only display -p if supported in usage

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Norbert Lange 2020-02-14 22:16:11 +01:00 committed by Denys Vlasenko
parent 05faa6103b
commit 79bd7c3f7b
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,7 @@
#include "dhcpc.h" #include "dhcpc.h"
#include "dhcpd.h" #include "dhcpd.h"
#if ENABLE_PID_FILE_PATH == 1 #if ENABLE_PID_FILE_PATH
#define PID_FILE_PATH CONFIG_PID_FILE_PATH #define PID_FILE_PATH CONFIG_PID_FILE_PATH
#else #else
#define PID_FILE_PATH "/var/run" #define PID_FILE_PATH "/var/run"

View File

@ -42,7 +42,9 @@
//usage: "\n -c DIR Config directory [/etc/acpi]" //usage: "\n -c DIR Config directory [/etc/acpi]"
//usage: "\n -e FILE /proc event file [/proc/acpi/event]" //usage: "\n -e FILE /proc event file [/proc/acpi/event]"
//usage: "\n -l FILE Log file [/var/log/acpid.log]" //usage: "\n -l FILE Log file [/var/log/acpid.log]"
//usage: "\n -p FILE Pid file [/var/run/acpid.pid]" //usage: IF_FEATURE_PIDFILE(
//usage: "\n -p FILE Pid file [" CONFIG_PID_FILE_PATH "/acpid.pid]"
//usage: )
//usage: "\n -a FILE Action file [/etc/acpid.conf]" //usage: "\n -a FILE Action file [/etc/acpid.conf]"
//usage: "\n -M FILE Map file [/etc/acpi.map]" //usage: "\n -M FILE Map file [/etc/acpi.map]"
//usage: IF_FEATURE_ACPID_COMPAT( //usage: IF_FEATURE_ACPID_COMPAT(