Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Mar 1998 17:33:35 -0500 (EST)
From:      "Bruce M. Walter" <walter@fortean.com>
To:        John Polstra <jdp@polstra.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: APM power off (patch)
Message-ID:  <Pine.BSF.3.96.980309172857.18028A-100000@aries.fortean.com>
In-Reply-To: <199803092201.OAA10190@austin.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 9 Mar 1998, John Polstra wrote:

> Well, "halt -p" has been around for decades, even if it doesn't
> currently work.  I'd suggest looking at the source for it and seeing
> what it does.

Currently, the -p flag just sets the RB_POWEROFF flag to reboot().  That
in turn does nothing ;)  There's actually a flaw in halt/reboot -p which
causes it to set RB_POWEROFF & RB_HALT in the -p case.  I feel as if HALT
and POWEROFF are exclusive (ie: halt -p sets halt, but reboot -p does
not).

The patches I described can be used to enable the -p flag...  The howto
param from boot gets passed to the callout functions, so drivers can check
if it's really their cue to shutdown.

- Bruce

========================================================================
|| Bruce M. Walter                    || 107 Timber Hollow Court #335 ||
|| Senior Network Consultant          || Chapel Hill, NC  27514       ||
|| Fortean Technologies, Inc.         || Tel: 919-967-4766            ||
|| Information Technology Consultants || Fax: 919-967-4395            ||
========================================================================
||       BSD Unix -- It's not just a job, it's a way of life!         ||
========================================================================


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980309172857.18028A-100000>