Subject: Re: apmd battery/line script names
To: Christoph Badura <bad@ora.de>
From: Guenther Grau <Guenther.Grau@bk.bosch.de>
List: current-users
Date: 11/20/1998 19:45:39
Christoph Badura wrote:
> 
> >I _almost_ called it "ac", but I figured that it might confuse
> >people with the "ac" command, and the power doesn't actually have
> >to be AC (for example, a car lighter adapter).
> 
> In that case, "external power" and "battery power" spring to my mind.

Well, to jump into this discussion: my point is, that names
don't make it clear if the transition is to the state or from
the state. Will the battery script be run when we go into
the state, or when we leave the state?

Thus my proposal toBatteryPower and toExternalPower.

Maybe we call the scripts with parameters like the SYS V rc?.d
scripts: 
battery start when we enter battery state
battery stop when we leave the battery state

But then someone has to take care what states exist and which
transitions are possible.

  Guenther