Alexander E. Patrakov wrote:
> DJ Lucas wrote:
>> 
>> need to mention that if more than one sound card is
>> installed that you'll need to adjust the dev.d script and directory.
> 
> 
> No need to adjust the script if you replace "alsactl restore 0" with:
> 
> DEV_BASENAME="${DEVNAME##*/}"
> case "$DEV_BASENAME" in
> controlC[0-7])
>     N="${DEV_BASENAME#controlC}"
>     alsactl restore $N  # FIXME: check with two identical cards
>     ;;
> esac
> 
> Maybe you can even put it into /etc/dev.d/sound/alsa.dev, as done e.g.
> in ALT Linux, and this way it will work for all cards.
> 

Sounds good.  I have 4 or 5 SBLive! cards (all identical)...lets see
what happens.  Never had more than 2 in a single PC before.  :-)

>> I backgrounded the entire while loop (the user never sees a delay) and
>> set
>> a default timeout of 20 seconds..
> 
> 
> This relies upon "job control" in /bin/sh, I am not sure if that feature
> is available in udevstart (the script is essentially started from
> /dev/console and has no controlling tty). Will test.
> 

Actually, I tested this by moving /usr/bin/alsactl to
/usr/bin/save-alsactl and making the alsa script rename the file when it
started (removed the alsactl command). It's silly but it worked for
testing purposes.

>> this can be increased, but I doubt it
>> is necessary.  Can you test this on the 486 you had mentioned previously?
> 
> 
> No, that's too far from my home :)
> 

Bummer, that would have been a good test, but thanks for the comments
and being persistant on the dev.d handler.

-- DJ Lucas
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to