summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiz <wiz>2002-08-19 17:30:05 +0000
committerwiz <wiz>2002-08-19 17:30:05 +0000
commit7be875c5e9bfff903f9e4a6b928443869e6b6fd3 (patch)
treea6c5cab65627ce85f75d6a846820065f124fceda /security
parent2c8dfc81b040c202cfe3d2332c43a45e69494740 (diff)
downloadpkgsrc-7be875c5e9bfff903f9e4a6b928443869e6b6fd3.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')
-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"