[Pkg-alsa-devel] Bug#353893: /lib/alsa-utils/udev

Marco d'Itri md at linux.it
Tue Feb 21 16:52:47 UTC 2006


Package: alsa-utils
Version: 1.0.10+1.0.11rc1-1
Severity: normal

Please rename /lib/alsa-utils/udev to /lib/udev/alsa-utils which is the
proper location for these scripts.

Then use something like this in the script, or it will always fail on
system with a standalone /usr:

#!/bin/sh -e
. /lib/udev/hotplug.functions
(
wait_for_file /usr/sbin/alsactl
DEV_BASENAME="${DEVNAME##*/}"
N="${DEV_BASENAME#controlC}"
exec /etc/init.d/alsa-utils start $N
) &

It needs to fork and continue in the background or the udev init script
will deadlock waiting for it until the timeout.

Also /etc/alsa/modprobe-post-install.d/alsa-utils needs to be updated:
since version 0.076-1 the correct way to check for the presence of udev
has been "test -e /dev/.udev".
You can remove the check for /dev/.udev.tdb which has not been useful
since version 0.046-1.
I do not understand the check for kernel_is_2_6_or_above in the script,
udev only supports 2.6 kernels.

-- 
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20060221/f166390f/attachment.pgp


More information about the Pkg-alsa-devel mailing list