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

Bad module test in cdrom-detect



The code in cdrom-detect to test if a module is available, will fail
to find some modules:

  if [ ! -f /lib/modules/*/*/"$module".o ]

It will fail to understand aliases, and will fail in the module is
further down in the file hierarcy.  Anyone know a better way to test
this.  The way discover do it is no good either, as it will ignore
aliases:

  if ! (modprobe -l ${MODULE}.o | grep ${MODULE}.o) > /dev/null

Is there a way to find out if the module or alias exists, without
trying to load the module?



Reply to: