From c33c8978dff5eae915e25a5235b6de738e6e4b0e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 1 Sep 2012 20:50:22 +0200 Subject: [PATCH] sound: make lspci silent if no PCI bus is available (arm) --- postplug.d/35sound | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postplug.d/35sound b/postplug.d/35sound index f5bf9d4..967a45c 100644 --- a/postplug.d/35sound +++ b/postplug.d/35sound @@ -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