On Mar 12, Thomas Hood <[EMAIL PROTECTED]> wrote: > I am running Linux 2.4.27. DRIVERS contains, among other names, "snd-cs46xx" > which > in its turn gets assigned to MODULE. sed converts the hyphen in this string > to an > underscore for grep's regexp argument. lsmod outputs "snd-cs46xx", not > "snd_cs46xx", so grep returns failure. I assume that the opposite result was > intended. No, 2.6 kernels use names with underscores.
I think that something like this was intented instead: lsmod | grep -sqi "^$(echo $MODULE | sed -e 's/[-_]/[-_]/g') " -- ciao, Marco
signature.asc
Description: Digital signature