From 1c0efe34c0c77b1e65a75026ca9f809a272144e3 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 7 Sep 2010 09:54:05 -0700 Subject: Update sound blacklist fix The sound blacklist should be in a seprate file, and check for entry before creating --- debian/vyatta-cfg-system.postinst.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debian/vyatta-cfg-system.postinst.in') 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 -- cgit v1.2.3