Bug#377514: [Pkg-alsa-devel] Bug#377514: useless kernel version check
in /etc/alsa/modprobe-post-install.d/alsa-utils
Elimar Riesebieter
riesebie at lxtec.de
Sun Jul 9 17:43:13 UTC 2006
On Sun, 09 Jul 2006 the mental interface of
Marco d'Itri told:
> Package: alsa-utils
> Version: 1.0.11-5
> Severity: normal
>
> Please remove any trace of kernel_is_2_6_or_above from the
> /etc/alsa/modprobe-post-install.d/alsa-utils, it's totally pointless
> and wastes CPU cycles every time an ALSA module is loaded.
ACK, but since which kernel-version we're running udev? There might
be some users running a 2.6 with only hotplug installed. If I am
wrong please correct me. The modified script would look like
attached.
Elimar
--
Learned men are the cisterns of knowledge,
not the fountainheads ;-)
-------------- next part --------------
--- modprobe-post-install-part.orig 2006-07-09 19:40:55.000000000 +0200
+++ modprobe-post-install-part 2006-07-09 19:41:56.000000000 +0200
@@ -2,18 +2,9 @@
#
# modprobe post-install script for alsa
-kernel_is_2_6_or_above()
-{
- case "$(uname -r)" in
- 1.*|2.[012345].*) return 1 ;;
- *) return 0 ;;
- esac
-}
-
udev_is_active()
{
test -e /dev/.udev || test -d /dev/.udevdb || return 1
- kernel_is_2_6_or_above || return 1
return 0
}
More information about the Pkg-alsa-devel
mailing list