From 5ccab7e8442e2ea69319a7504efd5f7602261851 Mon Sep 17 00:00:00 2001 From: "Wulf C. Krueger" Date: Sun, 20 May 2012 20:39:43 +0200 Subject: [PATCH] dropbear: Don't install to/use /var/run. --- packages/net/dropbear/files/dropbear.init | 40 +++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/net/dropbear/files/dropbear.init b/packages/net/dropbear/files/dropbear.init index e54185f..ed08f26 100644 --- a/packages/net/dropbear/files/dropbear.init +++ b/packages/net/dropbear/files/dropbear.init @@ -4,33 +4,33 @@ # $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/dropbear/files/dropbear.init.d,v 1.2 2004/07/14 23:57:35 agriffis Exp $ depend() { - use logger dns - need net + use logger dns + need net } check_config() { - if [ ! -e /etc/dropbear/ ] ; then - mkdir /etc/dropbear/ - fi - if [ ! -e /etc/dropbear/dropbear_dss_host_key ] ; then - einfo "Generating DSS-Hostkey..." - /usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key - fi - if [ ! -e /etc/dropbear/dropbear_rsa_host_key ] ; then - einfo "Generating RSA-Hostkey..." - /usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key - fi + if [ ! -e /etc/dropbear/ ] ; then + mkdir /etc/dropbear/ + fi + if [ ! -e /etc/dropbear/dropbear_dss_host_key ] ; then + einfo "Generating DSS-Hostkey..." + /usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key + fi + if [ ! -e /etc/dropbear/dropbear_rsa_host_key ] ; then + einfo "Generating RSA-Hostkey..." + /usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key + fi } start() { - check_config || return 1 - ebegin "Starting dropbear" - /usr/sbin/dropbear ${DROPBEAR_OPTS} - eend $? + check_config || return 1 + ebegin "Starting dropbear" + /usr/sbin/dropbear ${DROPBEAR_OPTS} + eend $? } stop() { - ebegin "Stopping dropbear" - start-stop-daemon --stop --pidfile /var/run/dropbear.pid - eend $? + ebegin "Stopping dropbear" + start-stop-daemon --stop --pidfile /run/dropbear.pid + eend $? }