/[gentoo-x86]/media-sound/audio-entropyd/files/audio-entropyd.init-1
Gentoo

Contents of /media-sound/audio-entropyd/files/audio-entropyd.init-1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 18 15:08:28 2011 UTC (3 years, 8 months ago) by angelos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2004 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/media-sound/audio-entropyd/files/audio-entropyd.init-1,v 1.1 2009/11/12 09:54:21 angelos Exp $
5
6 depend() {
7 need modules
8 use alsa
9 }
10
11 start() {
12 local params=""
13 [ -n "$DEVICE" ] && params="$params -d $DEVICE"
14 [ -n "$READSIZE" ] && params="$params -r $READSIZE"
15 [ -n "$SAMPLERATE" ] && params="$params -N $SAMPLERATE"
16
17 ebegin "Starting audio entropy gathering daemon"
18 start-stop-daemon --start --quiet --pidfile /var/run/audio-entropyd.pid \
19 --exec /usr/sbin/audio-entropyd -- ${params}
20 eend ${?}
21 }
22
23 stop() {
24 ebegin "Stopping audio entropy gathering daemon"
25 start-stop-daemon --stop --quiet --pidfile /var/run/audio-entropyd.pid
26 eend ${?}
27 }

  ViewVC Help
Powered by ViewVC 1.1.20