You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/ekeyd/files/ekeyd.init.2

31 lines
706 B

#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
INSTANCE="${SVCNAME#*.}"
if [ -z "${INSTANCE}" -o "${SVCNAME}" = "ekeyd" ]; then
INSTANCE="ekeyd"
fi
description="EntropyKey daemon"
pidfile=/var/run/$SVCNAME.pid
cfgfile=/etc/entropykey/${INSTANCE}.conf
command=/usr/libexec/ekeyd
command_args="-f ${cfgfile} -p ${pidfile}"
depend() {
config $cfgfile
use udev ekey-ulusbd
need localmount
# quickly parse the configuration file; we only provide entropy
# if we're not using the egd server/client split method.
if sed -e 's:--.*::' "${cfgfile}" | grep -q SetOutputToKernel; then
provide entropy
fi
}