sound: make lspci silent if no PCI bus is available (arm)

This commit is contained in:
Silvan Calarco 2012-09-01 20:50:22 +02:00
parent b8ce4a9a82
commit c33c8978df

View File

@ -74,7 +74,7 @@ _EOF
}
if [ -e /proc/bus/pci ]; then
SOUND_DEV="`lspci -n | grep " 04[0-9][0-9]: "`"
SOUND_DEV="`lspci -n 2>/dev/null| grep " 04[0-9][0-9]: "`"
fi
if [ ! "$SOUND_DEV" ]; then
if [ -e /proc/asound/cards ]; then