*BSD News Article 46127


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!europa.chnt.gtegsc.com!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: trapping CTRL-ALT-DEL in 1.1.5.1
Date: 24 Jun 1995 12:50:39 +0200
Organization: Private FreeBSD site, Dresden.
Lines: 21
Message-ID: <3sgqlv$6tu@uriah.heep.sax.de>
References: <3sdv5t$ane@phcoms4.seri.philips.nl>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Keywords: reboot

Walter Belgers <walter@lss.cp.philips.com> wrote:

>I am co-operator on a 1.1.5.1 FreeBSD system that is located in a public
>area. People tend to not understand the login-prompt and hit
>CTRL-ALT-DEL to get something they think is normal (i.e. a DOS prompt).
>I would like to make CTRL-ALT-DEL not do a reboot but just the sync so I
>can hit CTRL-ALT-DEL and then hit the power in case of an emergency.
>
>I didn't get it to work, not even with the help of someone who knows
>plenty about FreeBSD. Anybody else who did this and got it working?

The logic is in sys/kern_xxx.c within the function shutdown_nice().
It's sending the init process a SIGINT.  In order to modify this,
you'll have to re-implements parts of reboot(8) within the kernel,
since init(8) cannot forced to just halt the system, only to shutdown
to single-user or to reboot.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)