blob: 063884ef61a6d47565cbe3b6d6bdd82b0c713cc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need modules
use alsasound
provide entropy
}
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 ${?}
}
|