summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/audio-entropyd/files/audio-entropyd.init-2')
-rw-r--r--media-sound/audio-entropyd/files/audio-entropyd.init-226
1 files changed, 26 insertions, 0 deletions
diff --git a/media-sound/audio-entropyd/files/audio-entropyd.init-2 b/media-sound/audio-entropyd/files/audio-entropyd.init-2
new file mode 100644
index 000000000000..082fcbcd57fd
--- /dev/null
+++ b/media-sound/audio-entropyd/files/audio-entropyd.init-2
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/audio-entropyd/files/audio-entropyd.init-2,v 1.1 2009/11/12 09:54:21 angelos Exp $
+
+depend() {
+ need modules
+ use alsasound
+}
+
+start() {
+ local params=""
+ [ -n "$DEVICE" ] && params="$params -d $DEVICE"
+ [ -n "$SAMPLERATE" ] && params="$params -N $SAMPLERATE"
+
+ ebegin "Starting audio entropy gathering daemon"
+ start-stop-daemon --start --quiet --pidfile /var/run/audio-entropyd.pid \
+ --exec /usr/sbin/audio-entropyd -- ${params}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping audio entropy gathering daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/audio-entropyd.pid
+ eend ${?}
+}