I am just curious is there any way to determine if a particular module is loaded/installed.
$lsmod lists all modules (device driver loaded).
Is there any way to
The modinfo module method does not work well for me. I prefer this method that is similar to the alternative method proposed:
modinfo module
#!/bin/sh MODULE="$1" if lsmod | grep "$MODULE" &> /dev/null ; then echo "$MODULE is loaded!" exit 0 else echo "$MODULE is not loaded!" exit 1 fi