From owner-freebsd-current@FreeBSD.ORG Fri Jul 30 04:49:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B8DE16A4CE for ; Fri, 30 Jul 2004 04:49:53 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4D6343D5A for ; Fri, 30 Jul 2004 04:49:52 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (sccrmhc12) with ESMTP id <2004073004493901200fmt9te>; Fri, 30 Jul 2004 04:49:39 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) i6U4nb3o065288 for ; Fri, 30 Jul 2004 00:49:37 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)i6U4nbr3065278 for freebsd-current@freebsd.org; Fri, 30 Jul 2004 00:49:37 -0400 (EDT) (envelope-from rodrigc) Date: Fri, 30 Jul 2004 00:49:36 -0400 From: Craig Rodrigues To: freebsd-current@freebsd.org Message-ID: <20040730044936.GA53134@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Documenting machdep.enable_panic_key? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2004 04:49:53 -0000 Hi, I was scratching my head about this today. What do people think about the following patch? I can file a PR for it. --- usr.sbin/kbdcontrol/kbdmap.5.orig Fri Jul 30 00:41:05 2004 +++ usr.sbin/kbdcontrol/kbdmap.5 Fri Jul 30 00:42:54 2004 @@ -229,7 +229,11 @@ Activate screen saver by toggling between splash/text screen. .It panic -Panic the system. +Panic the system. The +.Xr sysctl 8 +variable +.Va machdep.enable_panic_key +must be set to 1 to enable this feature. .It paste Act as mouse buffer paste. .El --- sys/dev/syscons/syscons.c.orig Fri Jul 30 00:36:41 2004 +++ sys/dev/syscons/syscons.c Fri Jul 30 00:48:19 2004 @@ -135,7 +135,7 @@ static int enable_panic_key; SYSCTL_INT(_machdep, OID_AUTO, enable_panic_key, CTLFLAG_RW, &enable_panic_key, - 0, ""); + 0, "Enable panic via keypress specified in kbdmap(5)"); #define SC_CONSOLECTL 255 -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org