diff options
author | Anders Nordby <anders@FreeBSD.org> | 2002-08-14 00:14:07 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2002-08-14 00:14:07 +0000 |
commit | e2cd1247176376b58e8acf1f93c722c24604e6fe (patch) | |
tree | ff4bf125482f0b2c6b42821b5c9a47ffef380b71 /games | |
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 '')
-rw-r--r-- | games/fsgs/files/fsgs.sh | 6 | ||||
-rw-r--r-- | games/uox3/files/uox3.sh | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/games/fsgs/files/fsgs.sh b/games/fsgs/files/fsgs.sh index 0baeafa5509b..aec504082670 100644 --- a/games/fsgs/files/fsgs.sh +++ b/games/fsgs/files/fsgs.sh @@ -7,7 +7,11 @@ fi case "$1" in start) - cd ${PREFIX}; [ -x fsgs/fsgs -a -f fsgs/fsgs.cfg ] && fsgs/fsgs > /dev/null & && echo -n ' fsgs' + cd ${PREFIX} + if [ -x fsgs/fsgs -a -f fsgs/fsgs.cfg ]; then + fsgs/fsgs > /dev/null & + echo -n ' fsgs' + fi ;; stop) killall fsgs && echo -n ' fsgs' diff --git a/games/uox3/files/uox3.sh b/games/uox3/files/uox3.sh index 47e05f569fa7..90978e9a0c61 100644 --- a/games/uox3/files/uox3.sh +++ b/games/uox3/files/uox3.sh @@ -4,11 +4,12 @@ uox3dir=/usr/local/uox3 case "$1" in start) - [ -x ${uox3dir}/uox3 ] && \ - cd ${uox3dir} && \ - uox3 > ${uox3dir}/stdout.log & && \ + if [ -x ${uox3dir}/uox3 ]; then + cd ${uox3dir} + uox3 > ${uox3dir}/stdout.log & echo -n ' uox3' - ;; + fi + ;; stop) killall uox3 && echo -n ' uox3' ;; |