On Fri, 2004-12-03 at 16:51 +0100, Bogdan Costescu wrote: > On Fri, 3 Dec 2004, Brian Long wrote: > > > ... before putting this file in /etc/rc.d/init.d. We have similar > > init scripts for slmodem, aironet, vpnclient, etc. > > ... and all of them need to know if the kernel has changed since their > last run. How about doing it the other way around by having a script > or series of scripts a la /etc/profile.d be run from %post of a kernel > RPM ? (and eventually from %preun as well) why bother ? > > The script would only run when the kernel RPM is installed and would > give the possibility of running any extra commands, like compiling a > new version of the NVidia driver or installing an existing RPM > (although locking of the RPM database has to be considered here). > Therefore, there would be no need for such init scripts to keep track > of kernel versions. you just perfectly described the existing "rpm triggers" feature ;)
Attachment:
signature.asc
Description: This is a digitally signed message part