#!/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,v 1.4 2004/07/14 22:44:37 agriffis Exp $ depend() { need modules use alsa } 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} eend ${?} } stop() { ebegin "Stopping audio entropy gathering daemon" start-stop-daemon --stop --quiet --pidfile /var/run/audio-entropyd.pid eend ${?} }