Skip to contentSkip to conversation

alsa-info.sh: Sort the list of loaded modules.

PATCH New Paul Menzel 1 participant 1 message Feb 8, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsa-info.sh: Sort the list of loaded modules.

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

---
 utils/alsa-info.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/alsa-info.sh +1 -1
index fe7c08d..5b4e045 100755
@@ -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
 }
Signature · 1 line
1.6.6.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel