[alsa-devel] [PATCH] alsa-info.sh: Sort the list of loaded modules.

Paul Menzel paulepanter at users.sourceforge.net
Mon Feb 8 20:48:35 CET 2010


Searching for loaded modules in this list is easier with the list sorted.

Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 utils/alsa-info.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/alsa-info.sh b/utils/alsa-info.sh
index fe7c08d..5b4e045 100755
--- a/utils/alsa-info.sh
+++ b/utils/alsa-info.sh
@@ -127,7 +127,7 @@ withlsmod() {
 	echo "!!All Loaded Modules" >> $FILE
 	echo "!!------------------" >> $FILE
 	echo "" >> $FILE
-	lsmod |awk {'print $1'} >> $FILE
+	lsmod |sort |awk {'print $1'} >> $FILE
 	echo "" >> $FILE
 	echo "" >> $FILE
 }
-- 
1.6.6.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20100208/8b523420/attachment.sig 


More information about the Alsa-devel mailing list