summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2002-08-14 00:14:07 +0000
committerAnders Nordby <anders@FreeBSD.org>2002-08-14 00:14:07 +0000
commite2cd1247176376b58e8acf1f93c722c24604e6fe (patch)
treeff4bf125482f0b2c6b42821b5c9a47ffef380b71 /net-p2p
parent* Always depend on external libvorbis when building with Ogg Vorbis support. (diff)
Fix startup-scripts for -current /bin/sh issues.
Notes
Notes: svn path=/head/; revision=64482
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/opennap/files/opennap.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/net-p2p/opennap/files/opennap.sh b/net-p2p/opennap/files/opennap.sh
index 05e21d30b233..ecf5937fc025 100644
--- a/net-p2p/opennap/files/opennap.sh
+++ b/net-p2p/opennap/files/opennap.sh
@@ -7,10 +7,13 @@ fi
case "$1" in
start)
- [ -x ${PREFIX}/sbin/opennap ] && ${PREFIX}/sbin/opennap > /dev/null 2>&1 & && echo -n ' opennap'
+ if [ -x ${PREFIX}/sbin/opennap ]; then
+ ${PREFIX}/sbin/opennap > /dev/null 2>&1 &
+ echo -n ' opennap'
+ fi
;;
stop)
- [ -r ${PREFIX}/share/opennap/pid ] && kill -15 `cat ${PREFIX}/share/opennap/pid` > /dev/null && rm -f ${PREFIX}/share/opennap/pid &&echo -n ' opennap'
+ [ -r ${PREFIX}/share/opennap/pid ] && kill -15 `cat ${PREFIX}/share/opennap/pid` > /dev/null && rm -f ${PREFIX}/share/opennap/pid && echo -n ' opennap'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2