From owner-freebsd-hackers Mon Mar 15 11: 8:34 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 2303E15396 for ; Mon, 15 Mar 1999 11:08:26 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.1/8.9.1) id UAA21303; Mon, 15 Mar 1999 20:07:59 +0100 (CET) (envelope-from sos) From: Søren Schmidt Message-Id: <199903151907.UAA21303@freebsd.dk> Subject: Re: power-off without halt In-Reply-To: <199903151655.JAA28147@Ilsa.StevesCafe.com> from Steve Passe at "Mar 15, 1999 9:55:54 am" To: smp@csn.net (Steve Passe) Date: Mon, 15 Mar 1999 20:07:59 +0100 (CET) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Steve Passe wrote: > Hi, > > We are looking at using FreeBSD as an "embedded OS" inside a line > of instruments we are building. I think I have a handle on all the > issues except how to cleanly handle shutdown where there is no > console, and thus no way to send a 'halt' command. The requirement > is that the user can merely turn off the power, nothing more required. > > I can modify the disk setup, kernel/util code as needed, I just need some > idea for a workable solution. Has anyone delt with this problem before? Use a small circuit that gets the power off switch signal, pulls NMI which shutdown the system, and after a sufficient timemout pulls the power.. Nice and easy, and if the system hangs it will just be shut off after the timeout.... KISS at work again :) -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message