[Pkg-alsa-devel] Bug#927194: /etc/init.d/alsa-utils sleeps at store_levels()
Serge Belyshev
belyshev at depni.sinp.msu.ru
Tue Apr 16 07:07:16 BST 2019
Package: alsa-utils
Version: 1.1.8-2
Tags: patch
/etc/init.d/alsa-utils initscript contains an unnecessary "sleep 1" at
store_levels(), delaying shutdown by one second when using sysvinit.
Proposed fix:
diff --git a/debian/init b/debian/init
index e6a6e92..403c17f 100755
--- a/debian/init
+++ b/debian/init
@@ -79,7 +79,6 @@ store_levels()
CARD="$1"
[ "$1" = all ] && CARD=""
if MSG="$(alsactl -E HOME="$ALSACTLHOME" store $CARD 2>&1)" ; then
- sleep 1
return 0
else
log_action_cont_msg "warning: 'alsactl store${CARD:+ $CARD}' failed with error message '$MSG'"
More information about the Pkg-alsa-devel
mailing list