summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/vyatta-cfg-system.postinst.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 16ad9d2d..e12ca45b 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -177,7 +177,9 @@ password requisite pam_succeed_if.so user = root
fi
# Block pc speaker driver to keep system quiet
-[ grep "blacklist.*snd-pcsp" >&/dev/null ] || echo "blacklist snd-pcsp" >>/etc/modprobe.d/blacklist.conf
+if ! grep -q "blacklist.*snd-pcsp" /etc/modprobe.d/blacklist-sound.conf ; then
+ echo "blacklist snd-pcsp" >>/etc/modprobe.d/blacklist-sound.conf
+fi
#
# Ask mdadm to call our own event handling daemon