Subject: NetBSD-1.0/i386 CTRL-ALT-DEL
To: None <netbsd-help@NetBSD.ORG>
From: Tobias Weingartner <weingart@austin.BrandonU.CA>
List: netbsd-help
Date: 07/19/1995 15:35:13
Hi.
>From looking at the pcvt and pccons code, neither has any code in it to
really support the CRTL-ALT-DEL key sequence, and do a gracefull reboot
from it. The pcvt code could be compiled to call cpu_reset(), however,
from another quick check, this does not reboot the system gracefully.
I need a way to gracefully shutdown a NetBSD-1.0/i386 system, and have
given serious thought at calling reboot() from within the pcvt driver,
at the same place it currently calls cpu_reset().
Is there any problems with this? Aside from the obvious security concerns?
Can reboot() be called from this low a level in the kernel?
Anyone have other ideas? I need an easy way to shut the system down, even
when the keyboard is locked (maybe running X, etc). But I would prefer it
not to panic() the system. Any ideas?
--Toby.
*----------------------------------------------------------------------------*
| Tobias Weingartner | Email: weingart@BrandonU.Ca | Need a Unix sys-admin? |
| Box 27, Beulah, MB |-----------------------------| Send E-Mail for resume, |
| R0M 0B0, Canada | Unix Guru? Admin, Sys-Prgmr | and other details... |
|----------------------------------------------------------------------------|
| %SYSTEM-F-ANARCHISM, The operating system has been overthrown |
*----------------------------------------------------------------------------*