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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 22 15:05:10 2014 UTC (5 months, 4 weeks ago) by angelos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Move media-sound/audio-entropyd to sys-apps (bug #495000)

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-2,v 1.1 2009/11/12 09:54:21 angelos Exp $
5
6 depend() {
7 need modules
8 use alsasound
9 }
10
11 start() {
12 local params=""
13 [ -n "$DEVICE" ] && params="$params -d $DEVICE"
14 [ -n "$SAMPLERATE" ] && params="$params -N $SAMPLERATE"
15
16 ebegin "Starting audio entropy gathering daemon"
17 start-stop-daemon --start --quiet --pidfile /var/run/audio-entropyd.pid \
18 --exec /usr/sbin/audio-entropyd -- ${params}
19 eend ${?}
20 }
21
22 stop() {
23 ebegin "Stopping audio entropy gathering daemon"
24 start-stop-daemon --stop --quiet --pidfile /var/run/audio-entropyd.pid
25 eend ${?}
26 }

  ViewVC Help
Powered by ViewVC 1.1.20