diff options
author | anders <anders@FreeBSD.org> | 2002-08-14 00:14:07 +0000 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2002-08-14 00:14:07 +0000 |
commit | b324d4c0e0a3cd3a459edc4775e4100652b8bb92 (patch) | |
tree | 3521d2e4b7ac09b8b05a8984b37213ed5228f76e /audio | |
parent | 714c4e18805009109b98dcc2b7c97a817790758d (diff) | |
download | FreeBSD-ports-b324d4c0e0a3cd3a459edc4775e4100652b8bb92.zip FreeBSD-ports-b324d4c0e0a3cd3a459edc4775e4100652b8bb92.tar.gz |
Fix startup-scripts for -current /bin/sh issues.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/opennap/files/opennap.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/opennap/files/opennap.sh b/audio/opennap/files/opennap.sh index 05e21d3..ecf5937 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 |