From 3da505965757e4e925366c29b363105405fd202d Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Fri, 24 Jun 2011 19:47:50 +0000 Subject: machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 and i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@ --- sbin/sysctl/sysctl.8 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sbin/sysctl/sysctl.8') diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index e85c2b2c3d4..238048037f5 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysctl.8,v 1.158 2011/05/23 07:18:45 djm Exp $ +.\" $OpenBSD: sysctl.8,v 1.159 2011/06/24 19:47:48 naddy Exp $ .\" $NetBSD: sysctl.8,v 1.4 1995/09/30 07:12:49 thorpej Exp $ .\" .\" Copyright (c) 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)sysctl.8 8.2 (Berkeley) 5/9/95 .\" -.Dd $Mdocdate: May 23 2011 $ +.Dd $Mdocdate: June 24 2011 $ .Dt SYSCTL 8 .Os .Sh NAME @@ -342,6 +342,7 @@ and a few require a kernel compiled with non-standard .It hw.serialno string no .It hw.uuid string no .It hw.ncpufound integer no +.It hw.allowpowerdown integer yes .It machdep.console_device dev_t no .It machdep.unaligned_print integer yes .It machdep.unaligned_fix integer yes -- cgit v1.2.3