Bug#422805: [Pkg-alsa-devel] Bug#422805: alsa-utils: init script sleeps without explanation

2007-05-08 Thread Elimar Riesebieter
On Tue, 08 May 2007 the mental interface of
Josh Triplett told:

 Package: alsa-utils
 Version: 1.0.13-2
 Severity: normal
 
 /etc/init.d/alsa-utils contains:
  store_levels()
  {
  CARD=$1
  [ $1 = all ]  CARD=
  if MSG=$(alsactl store $CARD 21) ; then
  sleep 1
  return 0
 
 Does the init script really need to sleep here?  If so, could you please put
 in a comment explaining why the sleep needs to happen?  If not, could you
 please remove the sleep?

Could you please describe your problem? Do you want to shorten the
boot process? H.

Elimar

-- 
  The path to source is always uphill!
-unknown-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#422805: [Pkg-alsa-devel] Bug#422805: alsa-utils: init script sleeps without explanation

2007-05-08 Thread Josh Triplett
Package: alsa-utils
Version: 1.0.13-2
Followup-For: Bug #422805

Elimar Riesebieter wrote:
 On Tue, 08 May 2007 the mental interface of
 Josh Triplett told:
  Package: alsa-utils
  Version: 1.0.13-2
  Severity: normal
  
  /etc/init.d/alsa-utils contains:
   store_levels()
   {
   CARD=$1
   [ $1 = all ]  CARD=
   if MSG=$(alsactl store $CARD 21) ; then
   sleep 1
   return 0
  
  Does the init script really need to sleep here?  If so, could you please put
  in a comment explaining why the sleep needs to happen?  If not, could you
  please remove the sleep?
  
 Could you please describe your problem? Do you want to shorten the
 boot process? H.

Boot and shutdown, yes.  As a first pass, I grepped for sleep in my init
scripts, and found a few culprits, including alsa-utils.

If alsa-utils genuinely needs to sleep here in order to work around some kind
of problem, then ideally the sleep should have a comment explaining the
problem it solves.  This way, when the problem no longer exists, the sleep can
go away too.

- Josh Triplett

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-josh (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages alsa-utils depends on:
ii  libasound21.0.13-2   ALSA library
ii  libc6 2.5-7  GNU C Library: Shared libraries
ii  libncurses5   5.5-5  Shared libraries for terminal hand
ii  linux-sound-base  1.0.13-5   base package for ALSA and OSS soun
ii  lsb-base  3.1-23.1   Linux Standard Base 3.1 init scrip
ii  module-init-tools 3.3-pre4-2 tools for managing Linux kernel mo
ii  pciutils  1:2.2.4-1  Linux PCI Utilities
ii  python2.4.4-3An interactive high-level object-o
ii  whiptail  0.52.2-10  Displays user-friendly dialog boxe

Versions of packages alsa-utils recommends:
ii  alsa-base 1.0.13-5   ALSA driver configuration files

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]