* Matt Foster <[EMAIL PROTECTED]> [2003-09-01 19:29] :
> Quoting Derek Broughton ([EMAIL PROTECTED]):
> > From: "Matt Foster" <[EMAIL PROTECTED]>
> > 
> > > It's /proc/acpi/ac_adapter/ACAD/state on my system.
> > > Adding:
> > >
> > > #
> > > # see if ac is online
> > > #
> > >
> > > if grep "on-line" /proc/acpi/ac_adapter/ACAD/state > /dev/null 2>&1
> > 
> > Which will work, but there's an on_ac_power program that is supposed to be
> > smart enough to figure it out whether you're using apm or acpi.  I'd tell
> > you which package it's in, but I can't get to the net from Linux at the
> > moment...
> 
> So there is, its in powermgmt-base. much neater!

Except that since it is under /usr, it might not be available at fsck
time (that is, before /usr is mounted in /etc/rcS.d/S30checkfs.sh).


Fred


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to