From owner-freebsd-current@FreeBSD.ORG Sat Jul 31 03:05:50 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 8560C16A4CE for ; Sat, 31 Jul 2004 03:05:50 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23E2943D45 for ; Sat, 31 Jul 2004 03:05:50 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.0.11] (junior-wifi.samsco.home [192.168.0.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id i6V3CLh6025176; Fri, 30 Jul 2004 21:12:21 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <410B0BF0.6070508@samsco.org> Date: Fri, 30 Jul 2004 21:03:12 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040702 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Craig Rodrigues References: <20040730044936.GA53134@crodrigues.org> In-Reply-To: <20040730044936.GA53134@crodrigues.org> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-current@freebsd.org Subject: Re: 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: Sat, 31 Jul 2004 03:05:50 -0000 Craig Rodrigues wrote: > 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 > > > This looks reasonable. I'll commit it tomorrow if someone doesn't beat me to it. Scott