diff options
author | jlam <jlam@pkgsrc.org> | 2002-02-05 06:04:36 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-02-05 06:04:36 +0000 |
commit | e0d358778b0df3dd6eda22a878f91c1517d291dd (patch) | |
tree | 910b301d9e99bea4118f547f996c86cbedac39fc /sysutils/ups-nut/files/ups.sh | |
parent | d0529c736bda8009b0db6b89eaea48137d0c92ec (diff) | |
download | pkgsrc-e0d358778b0df3dd6eda22a878f91c1517d291dd.tar.gz |
Solaris' test binary (test/[) doesn't grok "-e". Replace with "-f".
Noted by Stoned Elipot <seb@netbsd.org> in private email.
Diffstat (limited to 'sysutils/ups-nut/files/ups.sh')
-rw-r--r-- | sysutils/ups-nut/files/ups.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/ups-nut/files/ups.sh b/sysutils/ups-nut/files/ups.sh index d87cf7df128..f4185b24e3a 100644 --- a/sysutils/ups-nut/files/ups.sh +++ b/sysutils/ups-nut/files/ups.sh @@ -1,10 +1,10 @@ #!/bin/sh # -# $NetBSD: ups.sh,v 1.6 2002/01/10 12:01:38 jlam Exp $ +# $NetBSD: ups.sh,v 1.7 2002/02/05 06:04:41 jlam Exp $ # # KEYWORD: nostart -if [ -e /etc/rc.subr ] +if [ -f /etc/rc.subr ] then . /etc/rc.subr fi @@ -39,7 +39,7 @@ stop_cmd="reverse_commands" status_cmd="forward_commands" extra_commands="status" -if [ -e /etc/rc.subr ] +if [ -f /etc/rc.subr ] then run_rc_command "$1" else |