/etc/cron.d/kmod

Grzegorz Konopko kolodko1 at o2.pl
Fri Sep 17 00:49:46 CEST 2004


Dnia piątek, 17 września 2004 00:34, Arkadiusz Miskiewicz napisał:
> On Thursday 16 of September 2004 21:50, Grzegorz Konopko wrote:
> > Dnia czwartek, 16 września 2004 00:28, Grzegorz Konopko napisał:
> > > > $ cat /etc/cron.d/kmod
> > > > # rmmod -a is a two-hand sweep module cleaner
> > > > */10 * * * *    root    /sbin/rmmod -as
> > > >
> > > >
> > > > there's no point in it
> > >
> > > I forgot, if change /sbin/rmmod on /sbin/rmmod.modutils and have 2.6 and
> > > 2.4 on one machine and boot is 2.6 we have got 6 mails on hour.
> >
> > no-one commented thread so I changed it on rmmod.modutils and added test 
on
> > kernel 2.4.
> >
> > STBR?
> No, now it will be broken when having both - 2.4 and 2.6 - kernels. 
> 
> Put  /sbin/rmmod -as into module-init-tools and 
> [ ! -x /sbin/rmmod ] && /sbin/rmmod.modutils -as into modutils.
> 
> This will cover both cases.
> 

from rmmod.c:

        if (!argv[optind]) {
                if (all) {
                        /* FIXME implement */
                        exit(1);
                }

Yes, and I think this change is enough on this time.




More information about the pld-devel-en mailing list