diff options
Diffstat (limited to 'media-sound/alsa-utils/files')
-rw-r--r-- | media-sound/alsa-utils/files/alsasound.initd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/media-sound/alsa-utils/files/alsasound.initd b/media-sound/alsa-utils/files/alsasound.initd index e3eb3c94880b..dd376d19b68d 100644 --- a/media-sound/alsa-utils/files/alsasound.initd +++ b/media-sound/alsa-utils/files/alsasound.initd @@ -1,5 +1,5 @@ #!/sbin/runscript -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound.initd,v 1.7 2008/05/15 18:16:18 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound.initd,v 1.8 2008/05/15 19:52:42 beandog Exp $ # Copyright 2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 @@ -221,9 +221,11 @@ stop() { fi if [ -f /proc/modules ] && [ "${UNLOAD_ON_STOP}" = "yes" ]; then - local ver="24" - rmmod --version | grep -q module-init-tools && ver="26" - + local ver="26" + case "$(uname -r)" in + 2.[01234].*) ver="24";; + *) ver="26";; + esac ebegin "Unloading ALSA modules" eindent unload_modules_${ver} |