Update README.md
[cmdllinux.git] / example_n_useful / modules / _lsmod.sh
blob45c9a53e361e3704acf3d0caa00d7eea4a07a618
1 find /sys/devices -name modalias | \
2 while read line; do
3 modprobe -R "$(cat "$line")" 2> /dev/null
4 done | \
5 sort -u | \
6 while read l2; do
7 echo "****$l2****"
8 modinfo "$l2"
9 echo
10 done