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
not sure if modinfo modname and checking $? will work for you, just a suggestion.
modinfo modname
$?
/tmp$ sudo modinfo e1000 /tmp$ echo $? 0 /tmp$ sudo modinfo keyboard ERROR: modinfo: could not find module keyboard /tmp$ echo $? 1
alternatively you also grep /proc/modules
/proc/modules