Created
April 25, 2017 21:33
-
-
Save cjohnson496/01cdc9b647504b7ea82ce0eba500594c to your computer and use it in GitHub Desktop.
Script or function listing kernel modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
. /etc/sysconfig/kernel | |
for i in $INITRD_MODULES $DOMU_INITRD_MODULES $MODULES_LOADED_ON_BOOT | |
do | |
if ! lsmod | grep"^$i[[:space:]]"&>/dev/null; then | |
echo $i | |
fi | |
done; echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment