[PATCH] acpid: only display -p if supported in usage

Denys Vlasenko vda.linux at googlemail.com
Mon Jun 29 12:11:29 UTC 2020


Applied, thanks!

On Fri, Feb 14, 2020 at 10:17 PM Norbert Lange <nolange79 at gmail.com> wrote:
>
> Signed-off-by: Norbert Lange <nolange79 at gmail.com>
> ---
>  util-linux/acpid.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/util-linux/acpid.c b/util-linux/acpid.c
> index 95f8150e2..fc8215cce 100644
> --- a/util-linux/acpid.c
> +++ b/util-linux/acpid.c
> @@ -42,7 +42,9 @@
>  //usage:     "\n       -c DIR  Config directory [/etc/acpi]"
>  //usage:     "\n       -e FILE /proc event file [/proc/acpi/event]"
>  //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       -M FILE Map file [/etc/acpi.map]"
>  //usage:       IF_FEATURE_ACPID_COMPAT(
> --
> 2.25.0
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list