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 32ad61a commit 130e4b3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .zshaliases
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,16 @@ function extract {
done
fi
}

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; \
done
}

0 comments on commit 130e4b3

Please sign in to comment.