Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 11:14:07 +0930
From:      Greg Lehey <grog@FreeBSD.org>
To:        "Christopher W. Aiken" <cwaiken@icubed.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Ctrl-Alt-Del once again
Message-ID:  <20010528111406.U29739@wantadilla.lemis.com>
In-Reply-To: <20010527212358.J291-100000@bigdaddy.localdomain>; from cwaiken@icubed.com on Sun, May 27, 2001 at 09:30:23PM -0400
References:  <20010527212358.J291-100000@bigdaddy.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 27 May 2001 at 21:30:23 -0400, Christopher W. Aiken wrote:
>
> I'd like to setup Ctrl-Alt-Del to do a "halt" instead
> of re-boot.  Searching the archives I found a snipit
> that indicated that the following command should do it:
>
> sysctl -w machdep.kbdreset=1
>
> However when I issue the above command I get the error:
> sysctl: unknown oid 'kbdreset'
>
> What am I missing?  Is there another way of doing what
> I'd like to do?

Yes.  Assuming you're using the standard keyboard map
(/usr/share/syscons/keymaps/us.iso.kbd), make a copy with an
appropriate name and change the following line:

Before:

  083   del    '.'    '.'    '.'    '.'    '.'    boot   boot    N

After:

  083   del    '.'    '.'    '.'    '.'    '.'    halt	 halt    N

This is described in the man page kbdmap(5), which was only written a
few months ago.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply.
For more information, see http://www.lemis.com/questions.html
Finger grog@FreeBSD.org for PGP public key
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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