Created
January 4, 2017 09:46
-
-
Save dedeibel/8310d1fb744b4c59ac96b3a7a77f6095 to your computer and use it in GitHub Desktop.
as of https://serverfault.com/questions/62316/how-do-i-list-loaded-linux-module-parameter-values#389965
This file contains hidden or 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
cat /proc/modules | cut -f 1 -d " " | while read module; do \ | |
echo "Module: $module"; \ | |
if [ -d "/sys/module/$module/parameters" ]; then \ | |
ls /sys/module/$module/parameters/ | while read parameter; do \ | |
echo -n "Parameter: $parameter --> "; \ | |
cat /sys/module/$module/parameters/$parameter; \ | |
done; \ | |
fi; \ | |
echo; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment