summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-09-07 09:54:05 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-09-07 09:54:05 -0700
commit1c0efe34c0c77b1e65a75026ca9f809a272144e3 (patch)
tree8783da7b9609a3902ee96fe888e3ef229b23e3b5 /debian/vyatta-cfg-system.postinst.in
parent5b251c6e7fa7d46335814dcc8bda2932658dc42f (diff)
downloadvyatta-cfg-quagga-1c0efe34c0c77b1e65a75026ca9f809a272144e3.tar.gz
vyatta-cfg-quagga-1c0efe34c0c77b1e65a75026ca9f809a272144e3.zip
Update sound blacklist fix
The sound blacklist should be in a seprate file, and check for entry before creating
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-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