All of lore.kernel.org
 help / color / mirror / Atom feed
* fedora core alsaconf patch
@ 2003-11-21 23:40 Fernando Pablo Lopez-Lezcano
  2003-11-22 10:18 ` Lars Heineken
  2003-11-24 11:45 ` fedora core alsaconf patch Takashi Iwai
  0 siblings, 2 replies; 11+ messages in thread
From: Fernando Pablo Lopez-Lezcano @ 2003-11-21 23:40 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

Included is a patch that fixes alsaconf to work correctly under fedora
core 1. Otherwise alsaconf happily creates a modules.conf file that only
contains the alsa configuration and nothing else (a path in the if's
that does not create a $TMP file before the alsa configuration process
starts). 

Please apply!
Thanks...
-- Fernando


[-- Attachment #2: alsa-utils-0.9.8-alsaconf.patch --]
[-- Type: text/plain, Size: 1068 bytes --]

--- alsa-utils-0.9.8/alsaconf/alsaconf.in~	2003-10-30 04:00:38.000000000 -0800
+++ alsa-utils-0.9.8/alsaconf/alsaconf.in	2003-11-21 15:28:35.000000000 -0800
@@ -30,8 +30,10 @@
   distribution="suse"
 elif [ -f /etc/debian_version ]; then
   distribution="debian"
-elif [ -f /etc/redhat-release ]; then
+elif [ -f /etc/redhat-release -a `grep -c "Red Hat" /etc/redhat-release 2>/dev/null` != 0 ]; then
   distribution="redhat"
+elif [ -f /etc/fedora-release -a `grep -c "Fedora" /etc/fedora-release 2>/dev/null` != 0 ]; then
+  distribution="fedora"
 else
   distribution="unknown"
 fi
@@ -532,10 +534,8 @@
 	SOUND_CORE="snd"
     fi
 
-    if [ "$distribution" = "redhat" ] ; then
-        if grep -q "Red Hat" /etc/redhat-release >/dev/null 2>&1 ; then
-	    remove_ac_block < $cfgfile | remove_sndconfig_block | uniq > $TMP
-        fi
+    if [ "$distribution" = "redhat" -o "$distribution" = "fedora" ] ; then
+        remove_ac_block < $cfgfile | remove_sndconfig_block | uniq > $TMP
     else
 	remove_ac_block < $cfgfile | remove_y2_block | uniq > $TMP
     fi

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-11-25 12:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21 23:40 fedora core alsaconf patch Fernando Pablo Lopez-Lezcano
2003-11-22 10:18 ` Lars Heineken
2003-11-24  2:39   ` Fernando Pablo Lopez-Lezcano
2003-11-24 14:59     ` [PATCH] add support for mandrake in alsaconf Thierry Vignaud
2003-11-24 15:15       ` Takashi Iwai
2003-11-24 18:58         ` Fernando Pablo Lopez-Lezcano
2003-11-24 19:42           ` Thierry Vignaud
2003-11-24 20:03             ` Fernando Pablo Lopez-Lezcano
2003-11-24 20:33               ` Thierry Vignaud
2003-11-25 12:16                 ` Takashi Iwai
2003-11-24 11:45 ` fedora core alsaconf patch Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.