Blame SOURCES/bltk-1.0.9-opt_game.patch

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