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

Re: Run for a new kernel install



On Fri, 3 Dec 2004, Arjan van de Ven wrote:

> actually the trigger of a package runs when ANOTHER package gets
> updated/installed. so teh *nvidia* rpm will have the proper trigger

OK, I made a fool of myself for too quickly reading the docs.
So we can't ask anything more of Red Hat as they do not provide the 
RPMs that contain the needed triggers (in this case the NVidia RPM).

As a conclusion to this thread, one can add an empty RPM package that 
contains a section like:

%triggerin -- kernel
for i in /etc/kernelupdate.d/*.sh; do
	if [ -r "$i" ]; then
		. "$i"
	fi
done

and have the scripts in /etc/kernelupdate.d/ be run anytime a new 
kernel package is installed.

-- 
Bogdan Costescu

IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen
Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY
Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868
E-mail: Bogdan Costescu IWR Uni-Heidelberg De



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