--- orig-1.0.9/wl_game/bltk_wl_game.sh 2009-04-10 09:14:20.000000000 +0200
+++ curr-1.0.9-1/wl_game/bltk_wl_game.sh 2009-07-17 11:03:54.891881334 +0200
@@ -22,16 +22,16 @@
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBGMORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BGM NOT
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBGMORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BGM NOT LIMITED
-# TO, PROCUREMENT OF SUBSTITGME GOODS OR SERVICES;
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OGM OF
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
#
@@ -40,8 +40,11 @@
set -x
+[ -f "$BLTK_CONF" ] && . "$BLTK_CONF"
+
source `dirname $0`/../../bin/bltk_wl_common
[[ $? != 0 ]] && { echo "bltk tree corrupted"; exit 2; }
+
startup()
{
trap 'cleanup 1; exit 1' 1 2 3 15
@@ -186,7 +189,15 @@
exit $1
}
-startup
-run
-cleanup 0
+if [ $WL_GAME_ENABLED = "YES" ]
+then
+ startup
+ run
+ cleanup 0
+else
+ TTY=`tty`
+ echo "WARNING!!!" > $TTY 2>&1
+ echo "The game workload is disabled. Read manual and use external package." > $TTY 2>&1
+ exit 0
+fi