From f0d1e3cac6302cc81c8964196000f8448dfba85e Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 4 Oct 2006 10:33:36 +0200 Subject: [PATCH] alsaconf - rcalsasound script does not exists in some distros See bug#1505 --- alsaconf/alsaconf.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in index 82d4731..6a7054e 100644 --- a/alsaconf/alsaconf.in +++ b/alsaconf/alsaconf.in @@ -911,8 +911,10 @@ BEGIN { in_sound=0; } xecho "Running update-modules..." update-modules fi - echo Loading driver... - $rcalsasound restart + if [ -x $rcalsasound ] ; then + echo Loading driver... + $rcalsasound restart + fi echo Setting default volumes... if [ -x $bindir/set_default_volume ]; then $bindir/set_default_volume -f