On 02/23/12 20:39, Luis R. Rodriguez wrote: > On Sun, Feb 19, 2012 at 8:03 AM, Rick Farina <sidhayn@xxxxxxxxx> wrote: >> modprobe -l is either deprecated or removed, so let's replace it >> >> Signed-off-by: Rick Farina <sidhayn@xxxxxxxxx> > Did you test this when one of those modules is present? ozzie compat-wireless # $(modinfo compat > /dev/null 2>&1) && echo yes yes ozzie compat-wireless # The logic is sound, I use the same test in another script and it works great. It's a bit unusual I realize, but it works and it's all I could think of. It tests the exit value of modinfo which is true when the module exists and false when it doesn't. Simple as I could manage. -Rick > > Luis > -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html