summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-02-15 08:55:59 +0000
committerseb <seb@pkgsrc.org>2002-02-15 08:55:59 +0000
commit2b4eb5b3f9c84adaf599d6235259a42cf22159ca (patch)
tree377cdc0973e7c56f50d06b17138edc09bee4aeb3 /sysutils/ups-nut
parent235f4d8e1df7c38e020b44a3154cbbc82728d759 (diff)
downloadpkgsrc-2b4eb5b3f9c84adaf599d6235259a42cf22159ca.tar.gz
Test for file /etc/rc.subr and not /etc/rc.d.
Diffstat (limited to 'sysutils/ups-nut')
-rw-r--r--sysutils/ups-nut/files/upsd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/ups-nut/files/upsd.sh b/sysutils/ups-nut/files/upsd.sh
index 4ff7babc204..62ca4d9883c 100644
--- a/sysutils/ups-nut/files/upsd.sh
+++ b/sysutils/ups-nut/files/upsd.sh
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: upsd.sh,v 1.3 2002/02/05 06:04:41 jlam Exp $
+# $NetBSD: upsd.sh,v 1.4 2002/02/15 08:55:59 seb Exp $
#
# PROVIDE: upsd
# REQUIRE: upsdriver
@@ -16,7 +16,7 @@ command="@PREFIX@/sbin/${name}"
required_files="@NUT_CONFDIR@/${name}.conf"
pidfile="@NUT_STATEDIR@/${name}.pid"
-if [ -f /etc/rc.d ]
+if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"