How would I construct the "if" to see if a module is loaded

I've tried

if [ -n "lsmod |grep $module" ]
as well as
if [ -z "lsmod |grep $module" ]

I can't get either to work...what am I doing wrong?

/b



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to