aboutsummaryrefslogtreecommitdiff
path: root/audio/opennap
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 /audio/opennap
parent8e92340f89af61a862a7618c6b57cb32eec69f22 (diff)
downloadports-e2cd1247176376b58e8acf1f93c722c24604e6fe.tar.gz
ports-e2cd1247176376b58e8acf1f93c722c24604e6fe.zip
Notes
Diffstat (limited to 'audio/opennap')
-rw-r--r--audio/opennap/files/opennap.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/opennap/files/opennap.sh b/audio/opennap/files/opennap.sh
index 05e21d30b233..ecf5937fc025 100644
--- a/audio/opennap/files/opennap.sh
+++ b/audio/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