Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2004 21:03:12 -0600
From:      Scott Long <scottl@samsco.org>
To:        Craig Rodrigues <rodrigc@crodrigues.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Documenting machdep.enable_panic_key?
Message-ID:  <410B0BF0.6070508@samsco.org>
In-Reply-To: <20040730044936.GA53134@crodrigues.org>
References:  <20040730044936.GA53134@crodrigues.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?410B0BF0.6070508>