How to test between 2 kernels in /etc/modules.conf
I've got a redhat 8.0 box with two kernels, the first is the stock Redhat 2.4.18-14 kernel and the second is my new 2.4.18-14alsa kernel. While I usually use the alsa kernel there are times I use the stock/ oss kernel.
What I would like to know is how to use the: "if EXPRESSION" and other commands in the /etc/modules.conf file so that modprobe loads oss modules for the redhat kernel and alsa modules for the alsa kernel. Something like:
if "uname -r" = 2.4.18-14 then
(load oss modules)
(load alsa modules)
Make sence? My knowledge of bash/ modules.conf programing is poor and while I'm tinkering away at it I thought I'd ask this user forum.
Thank you for any help.