People are scared about those messages, so only dwarn() if the module
is actually loaded on the system.
fi
done
if [[ $found != yes ]]; then
- dwarn "Possible missing firmware \"${fw}\" for kernel module" \
- "\"${mod}.ko\""
+ if ! grep -qe "\<${modname//-/_}\>" /proc/modules; then
+ dinfo "Possible missing firmware \"${fw}\" for kernel module" \
+ "\"${modname}.ko\""
+ else
+ dwarn "Possible missing firmware \"${fw}\" for kernel module" \
+ "\"${modname}.ko\""
+ fi
fi
done
return 0