summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-02-11 05:37:39 +0000
committerMike Frysinger <vapier@gentoo.org>2003-02-11 05:37:39 +0000
commit8399643408b8ff3667d4dfb657429237fd4e044d (patch)
treeff5b9a4ebdb2512d52e5e07083ea6999dac9c248 /media-sound/emu10k1/files
parentAnother minor local script fix. (diff)
downloadhistorical-8399643408b8ff3667d4dfb657429237fd4e044d.tar.gz
historical-8399643408b8ff3667d4dfb657429237fd4e044d.tar.bz2
historical-8399643408b8ff3667d4dfb657429237fd4e044d.zip
add wrapper script to handle all sb cards #14777
Diffstat (limited to 'media-sound/emu10k1/files')
-rw-r--r--media-sound/emu10k1/files/digest-emu10k1-0.20a-r31
-rw-r--r--media-sound/emu10k1/files/emu10k1-script18
-rw-r--r--media-sound/emu10k1/files/emu10k1.conf-gentoo-header8
-rw-r--r--media-sound/emu10k1/files/modules-emu10k14
4 files changed, 29 insertions, 2 deletions
diff --git a/media-sound/emu10k1/files/digest-emu10k1-0.20a-r3 b/media-sound/emu10k1/files/digest-emu10k1-0.20a-r3
new file mode 100644
index 000000000000..c5afcbd75a1f
--- /dev/null
+++ b/media-sound/emu10k1/files/digest-emu10k1-0.20a-r3
@@ -0,0 +1 @@
+MD5 ffeab46e1b5ff9fd834dc78e240edf4b emu10k1-v0.20a.tar.bz2 286000
diff --git a/media-sound/emu10k1/files/emu10k1-script b/media-sound/emu10k1/files/emu10k1-script
new file mode 100644
index 000000000000..379159074c36
--- /dev/null
+++ b/media-sound/emu10k1/files/emu10k1-script
@@ -0,0 +1,18 @@
+#!/bin/bash
+. /sbin/functions.sh
+. /etc/emu10k1.conf
+
+case "${CARD_TYPE}" in
+ audigy)
+ audigy-script $@
+ ;;
+ emu)
+ emu-script $@
+ ;;
+ *)
+ eerror "You have not told me what kind of sound card you have."
+ eerror "Please edit /etc/emu10k1.conf and set the CARD_TYPE"
+ eerror "variable. You will find it at the top of the file."
+ exit 1
+ ;;
+esac
diff --git a/media-sound/emu10k1/files/emu10k1.conf-gentoo-header b/media-sound/emu10k1/files/emu10k1.conf-gentoo-header
new file mode 100644
index 000000000000..9c96e7eee292
--- /dev/null
+++ b/media-sound/emu10k1/files/emu10k1.conf-gentoo-header
@@ -0,0 +1,8 @@
+# Set your card type on the next line so that loading the
+# kernel module works correctly.
+#
+# Accepted values are 'emu' and 'audigy'
+# use 'audigy' if you have an audigy based sound card,
+# otherwise use 'emu'
+CARD_TYPE="set_me"
+
diff --git a/media-sound/emu10k1/files/modules-emu10k1 b/media-sound/emu10k1/files/modules-emu10k1
index 6ca828827f64..d2beec537e63 100644
--- a/media-sound/emu10k1/files/modules-emu10k1
+++ b/media-sound/emu10k1/files/modules-emu10k1
@@ -1,2 +1,2 @@
-post-install emu10k1 /usr/bin/emu-script restore
-pre-remove emu10k1 /usr/bin/emu-script save
+post-install emu10k1 /usr/bin/emu10k1-script restore
+pre-remove emu10k1 /usr/bin/emu10k1-script save