diff options
Diffstat (limited to 'media-sound/alsa-utils/files')
-rw-r--r-- | media-sound/alsa-utils/files/alsa-utils-1.0.4-alsaconf.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/media-sound/alsa-utils/files/alsa-utils-1.0.4-alsaconf.patch b/media-sound/alsa-utils/files/alsa-utils-1.0.4-alsaconf.patch new file mode 100644 index 000000000000..5218c25ba2d9 --- /dev/null +++ b/media-sound/alsa-utils/files/alsa-utils-1.0.4-alsaconf.patch @@ -0,0 +1,34 @@ +--- alsaconf/alsaconf.in.orig 2004-04-17 00:06:35.000000000 -0700 ++++ alsaconf/alsaconf.in 2004-04-17 00:10:27.000000000 -0700 +@@ -26,6 +26,8 @@ + # Check for GNU/Linux distributions + if [ -f /etc/SuSE-release -o -f /etc/UnitedLinux-release ]; then + distribution="suse" ++elif [ -f /etc/gentoo-release ]; then ++ distribution="gentoo" + elif [ -f /etc/debian_version ]; then + distribution="debian" + elif [ -f /etc/mandrake-release ]; then +@@ -153,7 +155,9 @@ + + # cfgfile = base config file to remove/update the sound setting + # cfgout = new config file to write the sound setting (if different from $cfgfile) +-if [ "$kernel" = "new" ]; then ++if [ "$distribution" = "gentoo" ]; then ++ cfgfile="/etc/modules.d/alsa" ++elif [ "$kernel" = "new" ]; then + if [ -d /etc/modprobe.d ]; then + cfgout="/etc/modprobe.d/sound" + fi +@@ -649,7 +653,10 @@ + + farewell "OK, driver $CARD_DRIVER is configured." + clear +- if [ "$distribution" = "debian" ]; then ++ if [ "$distribution" = "gentoo" ]; then ++ echo Running modules-update... ++ modules-update ++ elif [ "$distribution" = "debian" ]; then + echo Running update-modules... + update-modules + fi |