From c5259b9814366b2be931dbac36ff775cae3e9862 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 7 Jul 2005 19:36:39 +0000 Subject: Updated init script to work with sparc audio. Closes bug #84412 thanks to Peter Schloemer . Package-Manager: portage-2.0.51.22-r1 --- media-sound/aumix/files/aumix.rc6 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'media-sound/aumix/files') diff --git a/media-sound/aumix/files/aumix.rc6 b/media-sound/aumix/files/aumix.rc6 index bdfdfbfcc192..21430103ec8a 100644 --- a/media-sound/aumix/files/aumix.rc6 +++ b/media-sound/aumix/files/aumix.rc6 @@ -1,14 +1,14 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/aumix/files/aumix.rc6,v 1.9 2004/10/31 10:17:47 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/aumix/files/aumix.rc6,v 1.10 2005/07/07 19:36:39 eradicator Exp $ depend() { use modules hotplug coldplug alsasound } checkconfig() { - if [ -z "`egrep 'sound|OSS' /proc/devices`" ] && [ ! -d /proc/asound ] + if ! grep -q 'sound|OSS|sparcaudio' /proc/devices && [[ ! -d /proc/asound ]] then eerror "Sound support has not been compiled into the kernel," eerror "or is disabled. Please check that the correct modules" @@ -16,7 +16,7 @@ checkconfig() { return 1 fi # /dev/mixer can be a symlink - if [ ! -e /dev/mixer ] ; then + if [[ ! -e /dev/mixer ]] ; then eerror "/dev/mixer does not exist, please create it, or load the" eerror "correct modules to enable your card's mixer" return 1 @@ -25,7 +25,7 @@ checkconfig() { start() { checkconfig || return 1 - if [ -f /etc/aumixrc ] ; then + if [[ -f /etc/aumixrc ]] ; then ebegin "Loading Mixer settings" /usr/bin/aumix -f /etc/aumixrc -L >/dev/null 2>&1 else -- cgit v1.2.3-65-gdbad