summaryrefslogtreecommitdiff
path: root/security/openssh
diff options
context:
space:
mode:
authorwiz <wiz>2002-08-19 17:30:05 +0000
committerwiz <wiz>2002-08-19 17:30:05 +0000
commitd14c11842dd1f116a34c2486a699a857e46d498b (patch)
treea6c5cab65627ce85f75d6a846820065f124fceda /security/openssh
parent9ef6bcd7ffab36550af72d630b070764bc7ae9d5 (diff)
downloadpkgsrc-d14c11842dd1f116a34c2486a699a857e46d498b.tar.gz
Fix test for rc.d in configure script, so that this works on 1.4.x.
Gleaned from apache's startup script.
Diffstat (limited to 'security/openssh')
-rw-r--r--security/openssh/files/sshd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/openssh/files/sshd.sh b/security/openssh/files/sshd.sh
index e05a74d4d73..69612516b67 100644
--- a/security/openssh/files/sshd.sh
+++ b/security/openssh/files/sshd.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: sshd.sh,v 1.8 2002/04/02 10:14:42 seb Exp $
+# $NetBSD: sshd.sh,v 1.9 2002/08/19 17:30:05 wiz Exp $
#
# PROVIDE: sshd
# REQUIRE: DAEMON LOGIN
@@ -57,7 +57,7 @@ sshd_precmd()
keygen_cmd=sshd_keygen
start_precmd=sshd_precmd
-if [ -f /etc/rc.subr ]
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
then
load_rc_config $name
run_rc_command "$1"