summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-03-12 11:28:52 +0000
committerMike Frysinger <vapier@gentoo.org>2003-03-12 11:28:52 +0000
commitbd940abb2272be3e9b3e0159f26c4c88cf0afd18 (patch)
tree10272d7b208e4f352b6245a1af30af811e59cb68 /media-sound/emu10k1/files
parentremovded crusty ebuilds (diff)
downloadgentoo-2-bd940abb2272be3e9b3e0159f26c4c88cf0afd18.tar.gz
gentoo-2-bd940abb2272be3e9b3e0159f26c4c88cf0afd18.tar.bz2
gentoo-2-bd940abb2272be3e9b3e0159f26c4c88cf0afd18.zip
fix for regular emu10k1 module
Diffstat (limited to 'media-sound/emu10k1/files')
-rw-r--r--media-sound/emu10k1/files/emu10k1-script4
1 files changed, 2 insertions, 2 deletions
diff --git a/media-sound/emu10k1/files/emu10k1-script b/media-sound/emu10k1/files/emu10k1-script
index 2d043a165d52..4aba311ec630 100644
--- a/media-sound/emu10k1/files/emu10k1-script
+++ b/media-sound/emu10k1/files/emu10k1-script
@@ -8,8 +8,8 @@ AUDIGY_PCI_TAG="multimedia audio controller: creative labs.*audigy"
EMU10K1_PCI_TAG="multimedia audio controller: creative labs.*emu10k1"
# first, lets try to read the driver information in /proc/driver/
-proc="`ls /proc/driver/emu10k1/*/info | awk '{print $1}'`"
-if [ -z "${CARD_TYPE}" ] && [ -e ${proc} ] ; then
+proc="`ls /proc/driver/emu10k1/*/info 2> /dev/null | awk '{print $1}'`"
+if [ -z "${CARD_TYPE}" ] && [ ! -z "${proc}" ] && [ -e ${proc} ] ; then
if [ -n "$(egrep -i '^card type.*audigy.*' ${proc})" ] ; then
CARD_TYPE="audigy"
elif [ -n "$(egrep -i '^card type.*emu10k1.*' ${proc})" ] ; then