[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No fsck in battery mode



Quoting Derek Broughton (dbroughton@lincsat.com):
> From: "Matt Foster" <mattfoster@clara.co.uk>
> 
> > 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!

ta,

matt

-- 
Matt Foster

mattfoster@clara.co.uk
ee1mpf@bath.ac.uk
http://www.mattfoster.clara.co.uk 
icq: 106411042



Reply to: