From owner-freebsd-stable Sat Aug 4 21:27:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id D894137B401; Sat, 4 Aug 2001 21:27:44 -0700 (PDT) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id VAA08809; Sat, 4 Aug 2001 21:26:52 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda08807; Sat Aug 4 21:26:46 2001 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.4/8.9.1) id f754QiZ75078; Sat, 4 Aug 2001 21:26:44 -0700 (PDT) Received: from UNKNOWN(10.1.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdf75076; Sat Aug 4 21:26:19 2001 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.5/8.9.1) id f754QGI61543; Sat, 4 Aug 2001 21:26:16 -0700 (PDT) Message-Id: <200108050426.f754QGI61543@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdO61538; Sat Aug 4 21:25:28 2001 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-Sender: schubert To: Kazutaka YOKOTA Cc: Brad Laue , Dima Dorfman , Kris Kennaway , Pascal Pederiva , freebsd-stable@FreeBSD.ORG Subject: Re: PATCH: syscons.c sysctl for PC-Reboot Keys In-reply-to: Your message of "Sun, 05 Aug 2001 13:02:05 +0900." <200108050402.NAA22213@zodiac.mech.utsunomiya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 04 Aug 2001 21:25:28 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200108050402.NAA22213@zodiac.mech.utsunomiya-u.ac.jp>, Kazutaka YOK OTA writes: > AFAIR, yes. > > I don't see much need to add a sysctl for this, because I cannot > imagine in what situation you want to turn on and off the reboot key > on the fly. The system administrator wants to disable the reboot key > entirely, or leave it enabled. > > But, if many people say they need it, perhaps we should add it... As we already have a way to do this, why bloat the kernel. I noticed on one FreeBSD mailing list a topic of putting the GENERIC kernel on a diet as it no longer fits on a 1.44 MB floppy. Just as the old adage that says that "if you watch the pennies the dollars will watch themselves," we can also say "if you watch the bytes, the kilobytes will watch themselves." I think what people want here is a simple way to disable CTRL-ALT-DEL without having to build a keyboard map, not necessarily a new sysctl. How about a compromise, a script that creates and loads a keyboard map that disables boot? Here's a crude example: #!/bin/sh - case $# in 0) . /etc/defaults/rc.conf . /etc/rc.conf; 1) keymap=$1;; *) echo only one argument is supported; exit 1;; esac test -r /usr/share/syscons/keymaps/$keymap || { echo keyboard map not found; exit 1; } sed 's/boot/nop/' /usr/share/syscons/keymaps/$keymap > /var/run/keymap.tmp kbdcontrol -l /var/run/keymap.tmp rm /var/run/keymap.tmp Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/Alpha Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD Ministry of Management Services Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message