On Wed, Jul 17, 2002 at 05:38:26PM -0700, David Busby wrote: > 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?
lsmod |grep $module >/dev/null && echo yes, it is. or if lsmod |grep $module >/dev/null; then echo yes, it is. fi Same difference. -- Hal Burgiss _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list