summaryrefslogtreecommitdiff
path: root/security/pks
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-21 21:38:50 +0000
committerjlam <jlam>2001-11-21 21:38:50 +0000
commite1cbd0b961bfde35229e14b6d3c90e589503c1ef (patch)
tree62d19c3fd37e1ac0c17df9885582a76d4eab225f /security/pks
parent556710e5fadc5f77b89c26602bfd5dcf7f21198a (diff)
downloadpkgsrc-e1cbd0b961bfde35229e14b6d3c90e589503c1ef.tar.gz
These rc.d scripts are copied to ${RCD_SCRIPTS_DIR} == /etc/rc.d, so change
the test for pre-rc.d systems to just whether /etc/rc.subr is present.
Diffstat (limited to 'security/pks')
-rw-r--r--security/pks/files/pksd.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/security/pks/files/pksd.sh b/security/pks/files/pksd.sh
index a07473542da..e929c037780 100644
--- a/security/pks/files/pksd.sh
+++ b/security/pks/files/pksd.sh
@@ -1,11 +1,11 @@
#!/bin/sh
#
-# $NetBSD: pksd.sh,v 1.3 2001/11/21 15:14:02 jlam Exp $
+# $NetBSD: pksd.sh,v 1.4 2001/11/21 21:38:54 jlam Exp $
#
# PROVIDE: pksd
# REQUIRE: DAEMON
-if [ -d /etc/rc.d -a -f /etc/rc.subr ]
+if [ -e /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -67,12 +67,12 @@ start_precmd=pksd_dbinit
start_cmd=pksd_start
stop_cmd=pksd_stop
-if [ ! -d /etc/rc.d ]
+if [ -e /etc/rc.subr ]
then
+ load_rc_config $name
+ run_rc_command "$1"
+else
@ECHO@ -n " ${name}"
pksd_dbinit
pksd_start
-else
- load_rc_config $name
- run_rc_command "$1"
fi