[arch-commits] Commit in hwdetect/trunk (PKGBUILD hwdetect)
Tobias Powalowski
tpowa at archlinux.org
Mon Aug 8 14:59:55 UTC 2011
Date: Monday, August 8, 2011 @ 10:59:55
Author: tpowa
Revision: 134893
upgpkg: hwdetect 2011.08-2
check if asound/modules exist
Modified:
hwdetect/trunk/PKGBUILD
hwdetect/trunk/hwdetect
----------+
PKGBUILD | 5 ++---
hwdetect | 10 ++++++----
2 files changed, 8 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-08-08 13:44:56 UTC (rev 134892)
+++ PKGBUILD 2011-08-08 14:59:55 UTC (rev 134893)
@@ -2,7 +2,7 @@
# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
pkgname=hwdetect
pkgver=2011.08
-pkgrel=1
+pkgrel=2
pkgdesc="Hardware detection script with loading modules and mkinitcpio.conf / rc.conf support"
arch=(any)
license=('GPL')
@@ -16,5 +16,4 @@
build() {
install -D -m 755 ${srcdir}/hwdetect ${pkgdir}/sbin/hwdetect
}
-
-md5sums=('afd06601a67896f49339456ec05a0d3c')
+md5sums=('813a91047ec871bc105e9f07776676d2')
Modified: hwdetect
===================================================================
--- hwdetect 2011-08-08 13:44:56 UTC (rev 134892)
+++ hwdetect 2011-08-08 14:59:55 UTC (rev 134893)
@@ -492,10 +492,12 @@
;;
--sound) : >/tmp/sound_persistent.conf
SOUND_EXPORTED=""
- for i in $(cat /proc/asound/modules | cut -d ' ' -f 3); do
- SOUND_EXPORTED="$SOUND_EXPORTED $i"
- done
- ! [[ "$SOUND_EXPORTED" = "" ]] && echo "options snd slots=$(echo $SOUND_EXPORTED | sed -e 's# #,#g' -e 's#^,##g')" >> /tmp/sound_persistent.conf
+ if [ -e /proc/asound/modules ]; then
+ for i in $(cat /proc/asound/modules | cut -d ' ' -f 3); do
+ SOUND_EXPORTED="$SOUND_EXPORTED $i"
+ done
+ ! [[ "$SOUND_EXPORTED" = "" ]] && echo "options snd slots=$(echo $SOUND_EXPORTED | sed -e 's# #,#g' -e 's#^,##g')" >> /tmp/sound_persistent.conf
+ fi
;;
--modules) showlist2 "MODULES" \($(listmods modules/)\) | sed -e 's/(\ /(/g' -e 's/\ )/)/g' -e 's/\ \ /\ /g'
;;
More information about the arch-commits
mailing list