How to have script run after kernel changed

Mogens Kjaer mk at crc.dk
Fri Mar 28 12:47:22 UTC 2008


Arch Willingham wrote:
> Is there any way to get a script to run automatically after the
> computer reboots following a kernel change? For example, when yum
> runs and a new kernel gets installed, I usually reboot and then run a
> script that enables some devices that don't work with a new kernel
> until the script has run.

Add a script in /etc/init.d that tests if the device
works. If not, do what is necessary.

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk at crc.dk Homepage: http://www.crc.dk




More information about the fedora-list mailing list