mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 02:26:31 +01:00
fix by Fernando Pablo Lopez-Lezcano <nando@ccrma.Stanford.EDU>:
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).
This commit is contained in:
parent
f4167224e3
commit
7d1c6cbf95
1 changed files with 5 additions and 5 deletions
|
@ -24,8 +24,10 @@ if [ -f /etc/SuSE-release -o -f /etc/UnitedLinux-release ]; then
|
||||||
distribution="suse"
|
distribution="suse"
|
||||||
elif [ -f /etc/debian_version ]; then
|
elif [ -f /etc/debian_version ]; then
|
||||||
distribution="debian"
|
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"
|
distribution="redhat"
|
||||||
|
elif [ -f /etc/fedora-release -a `grep -c "Fedora" /etc/fedora-release 2>/dev/null` != 0 ]; then
|
||||||
|
distribution="fedora"
|
||||||
else
|
else
|
||||||
distribution="unknown"
|
distribution="unknown"
|
||||||
fi
|
fi
|
||||||
|
@ -546,10 +548,8 @@ Do you want to modify ${cfgfile}?" 8 50 || acex 0
|
||||||
SOUND_CORE="snd"
|
SOUND_CORE="snd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$distribution" = "redhat" ] ; then
|
if [ "$distribution" = "redhat" -o "$distribution" = "fedora" ] ; then
|
||||||
if grep -q "Red Hat" /etc/redhat-release >/dev/null 2>&1 ; then
|
remove_ac_block < $cfgfile | remove_sndconfig_block | uniq > $TMP
|
||||||
remove_ac_block < $cfgfile | remove_sndconfig_block | uniq > $TMP
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
remove_ac_block < $cfgfile | remove_y2_block | uniq > $TMP
|
remove_ac_block < $cfgfile | remove_y2_block | uniq > $TMP
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue