From 2f1bb51336e02005ecdac402591154301d3d680b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?utf8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?utf8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Wed, 3 Oct 2012 05:48:19 +0400 Subject: [PATCH] man: handle-sleep-key is invalid, replace it with handle-suspend-key and handle-hibernate-key in systemd-inhibit help and man. --- man/systemd-inhibit.xml | 3 ++- src/login/inhibit.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/man/systemd-inhibit.xml b/man/systemd-inhibit.xml index f3ccee3bb..1218836cb 100644 --- a/man/systemd-inhibit.xml +++ b/man/systemd-inhibit.xml @@ -108,7 +108,8 @@ sleep, idle, handle-power-key, - handle-sleep-key, + handle-suspend-key, + handle-hibernate-key, handle-lid-switch, for inhibiting reboot/power-off/halt/kexec, diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 28ce553b3..4735df7d3 100644 --- a/src/login/inhibit.c +++ b/src/login/inhibit.c @@ -162,7 +162,8 @@ static int help(void) { " --version Show package version\n" " --what=WHAT Operations to inhibit, colon separated list of:\n" " shutdown, sleep, idle, handle-power-key,\n" - " handle-sleep-key, handle-lid-switch\n" + " handle-suspend-key, handle-hibernate-key,\n" + " handle-lid-switch\n" " --who=STRING A descriptive string who is inhibiting\n" " --why=STRING A descriptive string why is being inhibited\n" " --mode=MODE One of block or delay\n" -- 2.30.2