From owner-freebsd-hackers Mon Mar 9 14:35:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA17387 for freebsd-hackers-outgoing; Mon, 9 Mar 1998 14:35:00 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from aries.fortean.com (aries.fortean.com [209.42.194.114]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA17331 for ; Mon, 9 Mar 1998 14:34:37 -0800 (PST) (envelope-from walter@fortean.com) Received: from localhost (walter@localhost) by aries.fortean.com (8.8.8/8.8.8) with SMTP id RAA18045; Mon, 9 Mar 1998 17:33:36 -0500 (EST) (envelope-from walter@fortean.com) X-Authentication-Warning: aries.fortean.com: walter owned process doing -bs Date: Mon, 9 Mar 1998 17:33:35 -0500 (EST) From: "Bruce M. Walter" To: John Polstra cc: hackers@FreeBSD.ORG Subject: Re: APM power off (patch) In-Reply-To: <199803092201.OAA10190@austin.polstra.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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