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

Re: recursive finds, kernels, and laptops

Federico Di Gregorio writes:

> I agree. There is no need to rewrite all the packages. Lets simply
> add the apm/plug checks to the 10/15 packages that install heavy-load
> cron scripts. (A bug report with the patches is enough IMHO.)

Sounds good.  I'll do this.

Just in case anyone is interested, the following is going to be the
basic form of the patch; if there are any suggestions, make 'em now :-)

if [ -f /proc/apm ]; then
  if [ "`cat /proc/apm | (read a b c d e; echo $e)`" != "0x00" ]; then
    exit 0  # or do everything but the find
# Do everything, including the find


Reply to: