Quoting Derek Broughton ([EMAIL PROTECTED]): > From: "Fr�d�ric Bothamy" <[EMAIL PROTECTED]> > > > * Matt Foster <[EMAIL PROTECTED]> [2003-09-01 19:29] : > > > Quoting Derek Broughton ([EMAIL PROTECTED]): > > > > > > > > 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). > > Doh! Of course you're right. I wonder if it could be copied to /boot and > still work? Matt's solution is good - but it must have the same problem: > grep will be available at the same time as on_ac_power! > well, no, since grep lives in /bin. On startup, / get mounted read-only. Thats the only way fsck can be run. That means that you can use grep, and anything else livig in /bin. I personally have almost everything in one partition, so I can use on_acpi_power as well, but for the sake of speed, I prefer the grep method.
matt -- Matt Foster [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.mattfoster.clara.co.uk icq: 106411042 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

