summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Brindle <method@gentoo.org>2004-04-02 22:42:38 +0000
committerJoshua Brindle <method@gentoo.org>2004-04-02 22:42:38 +0000
commit4bf695b5aea3758ede2b17bf662536f3c09d6821 (patch)
tree2ce86d4181f9447e1ebf914fcdf35ef2a3be2c0e /media-sound/audio-entropyd/files
parentAdd MPICH_CONFIGURE_OPTS variable for customization (#38207). (Manifest recom... (diff)
downloadgentoo-2-4bf695b5aea3758ede2b17bf662536f3c09d6821.tar.gz
gentoo-2-4bf695b5aea3758ede2b17bf662536f3c09d6821.tar.bz2
gentoo-2-4bf695b5aea3758ede2b17bf662536f3c09d6821.zip
added conf file and vars to init file
Diffstat (limited to 'media-sound/audio-entropyd/files')
-rw-r--r--media-sound/audio-entropyd/files/audio-entropyd.conf13
-rw-r--r--media-sound/audio-entropyd/files/audio-entropyd.init4
2 files changed, 16 insertions, 1 deletions
diff --git a/media-sound/audio-entropyd/files/audio-entropyd.conf b/media-sound/audio-entropyd/files/audio-entropyd.conf
new file mode 100644
index 000000000000..dcd7993b7ba7
--- /dev/null
+++ b/media-sound/audio-entropyd/files/audio-entropyd.conf
@@ -0,0 +1,13 @@
+# /etc/conf.d/audio-entropyd:
+# $Header:
+
+# The acceptable values are DEVICE, READSIZE and SAMPLERATE
+# These defaults give the optimum entropy
+
+#DEVICE="/dev/dsp"
+
+#READSIZE *must* be a power of 2
+READSIZE="65536"
+
+#SAMPLERATE must be a valid sampling rate of your audio source
+SAMPLERATE="44050"
diff --git a/media-sound/audio-entropyd/files/audio-entropyd.init b/media-sound/audio-entropyd/files/audio-entropyd.init
index dacf5debb37e..f861f699be41 100644
--- a/media-sound/audio-entropyd/files/audio-entropyd.init
+++ b/media-sound/audio-entropyd/files/audio-entropyd.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/audio-entropyd/files/audio-entropyd.init,v 1.2 2004/03/31 10:14:35 method Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/audio-entropyd/files/audio-entropyd.init,v 1.3 2004/04/02 22:42:38 method Exp $
depend() {
need modules
@@ -11,6 +11,8 @@ depend() {
start() {
local params=""
[ -n "$DEVICE" ] && params="$params -d $DEVICE"
+ [ -n "$READSIZE" ] && params="$params -r $READSIZE"
+ [ -n "$SAMPLERATE" ] && params="$params -N $SAMPLERATE"
ebegin "Starting audio entropy gathering daemon"
start-stop-daemon --start --quiet --exec /usr/sbin/audio-entropyd -- ${params}