summaryrefslogtreecommitdiff
path: root/net/openslp/files
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-02-05 06:04:36 +0000
committerjlam <jlam@pkgsrc.org>2002-02-05 06:04:36 +0000
commite0d358778b0df3dd6eda22a878f91c1517d291dd (patch)
tree910b301d9e99bea4118f547f996c86cbedac39fc /net/openslp/files
parentd0529c736bda8009b0db6b89eaea48137d0c92ec (diff)
downloadpkgsrc-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 'net/openslp/files')
-rw-r--r--net/openslp/files/slpd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openslp/files/slpd.sh b/net/openslp/files/slpd.sh
index 868b8524c52..f48c79f0ce9 100644
--- a/net/openslp/files/slpd.sh
+++ b/net/openslp/files/slpd.sh
@@ -5,7 +5,7 @@
# PROVIDE: slpd
# REQUIRE: DAEMON
-if [ -e /etc/rc.subr ]
+if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
@@ -16,7 +16,7 @@ command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/slp.conf"
-if [ -e /etc/rc.subr ]
+if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"