Skip to content

Commit

Permalink
add lsmod with param
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Jul 26, 2022
1 parent 130e4b3 commit c946c9a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .zshaliases
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ function extract {
}

function lsmodp {
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 --> "; \
sudo cat /sys/module/$module/parameters/$parameter; \
done; \
fi; \
echo; \
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 --> "
sudo cat /sys/module/$module/parameters/$parameter
done
fi
echo
done
}

0 comments on commit c946c9a

Please sign in to comment.