diff options
Diffstat (limited to 'games/tetrinet-x/files/tetrinet-x.sh')
-rw-r--r-- | games/tetrinet-x/files/tetrinet-x.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/games/tetrinet-x/files/tetrinet-x.sh b/games/tetrinet-x/files/tetrinet-x.sh index 53089b6bc879..74b0aa874847 100644 --- a/games/tetrinet-x/files/tetrinet-x.sh +++ b/games/tetrinet-x/files/tetrinet-x.sh @@ -1,4 +1,18 @@ #!/bin/sh -[ -x /usr/local/tetrinet-x/tetrix.freebsd ] && cd /usr/local/tetrinet-x && \ -tetrix.freebsd > /dev/null && echo -n ' tetrinet-x' +tetrixdir=/usr/local/tetrinet-x +tetrix=tetrix.freebsd + +case "$1" in +start) + [ -x ${tetrixdir}/${tetrix} ] && cd ${tetrixdir} && \ + ${tetrixdir}/${tetrix} > /dev/null && echo -n ' tetrinet-x' + ;; +stop) + killall ${tetrix} && echo -n ' tetrinet-x' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac |