From 9085159c06ba621bec77a344fbb59b7abc325b36 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Wed, 18 Feb 2009 20:48:01 -0600
Subject: Force the user to run mythtv-setup.

---
 abs/core-testing/LinHES-system/LinHES-run | 59 ++++++++++---------------------
 abs/core-testing/LinHES-system/PKGBUILD   |  2 +-
 2 files changed, 20 insertions(+), 41 deletions(-)

diff --git a/abs/core-testing/LinHES-system/LinHES-run b/abs/core-testing/LinHES-system/LinHES-run
index 259ffc7..8b4a9f5 100644
--- a/abs/core-testing/LinHES-system/LinHES-run
+++ b/abs/core-testing/LinHES-system/LinHES-run
@@ -13,36 +13,23 @@ mtd &
 
 if [ x$ShowTips = "x1" ]
 then
-    #echo "displaying hints!, line 15 of linhes-run"
     echo "Alt+h for help"  | osd_cat --font="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*" --shadow=3 --pos=middle --align=centre --offset=200 --color=yellow --delay=5 &
-
-
 fi
 
 
 if [ !  $SystemType = "Frontend_only" ]
 then
   if [  -f ~/.configure ]
-        then
-	sudo -E tweaker.pl
-	/bin/rm /tmp/fps # ??? clean up a temp file that will eventually be obsolete anyway
-        #autocard.py -g &
-        MythVantage -b
-
-#0 yes
-#1 yes/autodetect
-#2  no
-        STATUS=$?
-        if [ ! $STATUS = 2 ]
-        then
-                sudo sv stop mythbackend
-                xterm -fn *18* -e sudo taskset -c 0 /usr/bin/mythtv-setup
-                sudo sv start mythbackend
+  then
+        sudo -E tweaker.pl
+    	/bin/rm /tmp/fps # ??? clean up a temp file that will eventually be obsolete anyway
+        sudo sv stop mythbackend
+        xterm -fn *18* -e sudo taskset -c 0 /usr/bin/mythtv-setup
+        sudo sv start mythbackend
 		sudo chown -R mythtv.mythtv /home/mythtv
-                nice -n 19 mythfilldatabase --quiet &
-        fi
+        nice -n 19 mythfilldatabase --quiet &
         rm ~/.configure
-        fi
+   fi
 fi
 
 
@@ -57,28 +44,20 @@ echo "====================================================================="
 echo "Starting $STARTCMD"
 firstboot.sh &
 
-# while [ x = x ]
-# do
         if [ -f /tmp/nomfe ]
         then
-#                 sleep 120
 		   exit 0
         else
-                if [ -f /tmp/debug ]
-                then
-
-                        echo "using gbd/debug"
-                        gdb /usr/bin/mythfrontend -x $MV_ROOT/mfegdbcommands.txt
-                        #bash -c "osdClient.pl localhost 5000 'Restart: mdb.txt.mythfronte                      nd:::SYS' "&
-                        mv gdb.txt gdb.txt.mythfrontend
-                        sleep 10
-
-                else
-                        killall -9 irexec
-                        /usr/bin/irexec &
-                        $STARTCMD 2>&1
-                fi
+           if [ -f /tmp/debug ]
+           then
+                echo "using gbd/debug"
+                gdb /usr/bin/mythfrontend -x $MV_ROOT/mfegdbcommands.txt
+                mv gdb.txt gdb.txt.mythfrontend
+                sleep 10
+            else
+                killall -9 irexec
+                /usr/bin/irexec &
+                $STARTCMD 2>&1
+           fi
         fi
-# echo "_______________________________________________________"
-# done
 
diff --git a/abs/core-testing/LinHES-system/PKGBUILD b/abs/core-testing/LinHES-system/PKGBUILD
index 441dda0..a2a4032 100644
--- a/abs/core-testing/LinHES-system/PKGBUILD
+++ b/abs/core-testing/LinHES-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-system
 pkgver=1.0
-pkgrel=30
+pkgrel=31
 arch=('i686')
 MVDIR=$startdir/pkg/usr/LH
 BINDIR=$startdir/pkg/usr/bin
-- 
cgit v0.12

