diff options
author | seb <seb> | 2002-02-15 08:55:59 +0000 |
---|---|---|
committer | seb <seb> | 2002-02-15 08:55:59 +0000 |
commit | d22bccd7779aa0d72a110d571c8eb9895bb5257c (patch) | |
tree | 377cdc0973e7c56f50d06b17138edc09bee4aeb3 /sysutils/ups-nut | |
parent | 268169be829361e8da36d618676b581c749a986e (diff) | |
download | pkgsrc-d22bccd7779aa0d72a110d571c8eb9895bb5257c.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.sh | 4 |
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" |