Re: APM poweroff fix for 2.1.x

Kiesel, Norbert (Norbert.Kiesel@Dresdner-Bank.com)
Tue, 21 Apr 1998 11:55:22 +0200


Hello!

I'll add some more comments for my SysVinit patch:

1) Linix-2.0.x took power down after a "halt" or "shutdown" if you
configured the kernel for this and your machine supports it. However
this was unconditionally (i.e. you couldn't halt without automatic
poweroff).

2) SysVinit-2.74 states that it is correct to call "halt" from runlevel
3 (and that is would just call shutdown for you). It also states that
"halt -p" or "poweroff" are intended for "halt and poweroff". But this
does not work with plain SysVinit-2.74 ans Linux-2.1.x.

3) One could simply add a "-p" to the final invocation of halt in
rc.d/0.d/halt to force poweroff. But this would bring us back to the
2.0.x situation where a simple "halt" would also poweroff the machine
(which is e.g. bad when you want to read the shutdown messages for
debugging "halt" :-)

Summary: My patch changes nothing with 2.0.x (hopefully :-) and allows
"halt" and "poweroff" to behave as documented (from all runlevels) for
2.1.x.

Frohes Schaffen!

Norbert Kiesel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu