]> git.alsa-project.org Git - alsa-utils.git/commit
alsa-info.sh: Read from /proc/modules and sort the result
authorDavid Ward <david.ward@ll.mit.edu>
Sat, 21 Dec 2019 05:32:02 +0000 (00:32 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Jan 2020 13:04:39 +0000 (14:04 +0100)
commit86b1f80e24b68ce8153874e6ac851fa2b90c43b5
tree607319ff5921744c009b6425543634d174a478d1
parent11e083d81c330539f0f170bb238a17b1c2e0cb4d
alsa-info.sh: Read from /proc/modules and sort the result

Sorting the list of loaded modules makes it much easier to compare
two alsa-info.txt files, even if they are both from the same system
(since the order actually changes after each reboot).

lsmod just formats the contents of /proc/modules. After this script
calls lsmod, it strips everything but module names from the output.
This same result can be obtained just as easily by reading directly
from /proc/modules; then there is no need to remove the header line
printed by lsmod before sorting the output.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsa-info/alsa-info.sh