diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-07 17:30:56 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-07 17:30:56 +0000 |
commit | bf9f03868f615b297e490f1b6ba6458eceb28f4a (patch) | |
tree | 26b2d609f1cb66ca974994eb8a38952a5df87cbc /games-strategy/netpanzer/files | |
parent | MIPS love. (diff) | |
download | historical-bf9f03868f615b297e490f1b6ba6458eceb28f4a.tar.gz historical-bf9f03868f615b297e490f1b6ba6458eceb28f4a.tar.bz2 historical-bf9f03868f615b297e490f1b6ba6458eceb28f4a.zip |
Change all instances of [ to [[.
Package-Manager: portage-2.1.2.1
Diffstat (limited to 'games-strategy/netpanzer/files')
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer-ded | 4 | ||||
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer.rc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/games-strategy/netpanzer/files/netpanzer-ded b/games-strategy/netpanzer/files/netpanzer-ded index 4d8128d15e84..d6dd85193641 100644 --- a/games-strategy/netpanzer/files/netpanzer-ded +++ b/games-strategy/netpanzer/files/netpanzer-ded @@ -1,9 +1,9 @@ #!/bin/sh running=yes -while [ $running = yes ]; do +while [[ $running = yes ]] ; do /usr/games/bin/netpanzer --game_config=/etc/netpanzer-ded.ini -d $@ - if [ $? -ge 128 ]; then + if [[ $? -ge 128 ]] ; then echo "`date`: Restarting server after crash" # wait a bit to not blow cpu and logfiles on constant crashs sleep 30 diff --git a/games-strategy/netpanzer/files/netpanzer.rc b/games-strategy/netpanzer/files/netpanzer.rc index 633290976fe1..1261fb5099a3 100644 --- a/games-strategy/netpanzer/files/netpanzer.rc +++ b/games-strategy/netpanzer/files/netpanzer.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/files/netpanzer.rc,v 1.2 2007/02/07 09:21:49 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/files/netpanzer.rc,v 1.3 2007/03/07 17:30:56 wolf31o2 Exp $ depend() { need net @@ -16,11 +16,11 @@ start() { stop() { ebegin "Stopping netpanzer dedicated server" local pid=`screen -list | grep netpanzer-ded | awk -F . '{print $1}' | sed -e s/.//` - if [ -z "${pid}" ] ; then + if [[ -z "${pid}" ]] ; then eend 1 "Lost screen session" else pid=`pstree -p ${pid} | sed -e 's:^.*netpanzer-ded(\([0-9]*\)).*:\1:'` - if [ -z "${pid}" ] ; then + if [[ -z "${pid}" ]] ; then eend 1 "Lost netpanzer-ded session" else kill ${pid} |