summaryrefslogtreecommitdiffstats
path: root/abs/core-testing
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-02 19:24:26 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-02 19:24:26 (GMT)
commitedd113de73f119cc92789631b095b7ecd4c2b750 (patch)
tree311d4655205a98935b8619dd9b8e32e8b1151394 /abs/core-testing
parenta1faaf56ca792ff211bee12de8f690b7c5af23f6 (diff)
downloadlinhes_pkgbuild-edd113de73f119cc92789631b095b7ecd4c2b750.zip
linhes_pkgbuild-edd113de73f119cc92789631b095b7ecd4c2b750.tar.gz
linhes_pkgbuild-edd113de73f119cc92789631b095b7ecd4c2b750.tar.bz2
Add LinHES-run master LinHES startup script for X.
Called from fluxbox
Diffstat (limited to 'abs/core-testing')
-rw-r--r--abs/core-testing/LinHES-system/LinHES-run76
-rw-r--r--abs/core-testing/LinHES-system/PKGBUILD4
2 files changed, 78 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-system/LinHES-run b/abs/core-testing/LinHES-system/LinHES-run
new file mode 100644
index 0000000..14028e3
--- /dev/null
+++ b/abs/core-testing/LinHES-system/LinHES-run
@@ -0,0 +1,76 @@
+#!/bin/sh
+. /etc/profile
+. /etc/systemconfig
+
+keylaunch &
+/usr/bin/tilda &
+/usr/X11R6/bin/unclutter -root -idle 0 -jitter 400 -noevents &
+/usr/bin/xvattr -a XV_COLORKEY -v 0
+mtd &
+#/usr/bin/nvidia-settings -l
+#/usr/bin/nvidia-settings -a InitialPixmapPlacement=2
+
+if [ x$ShowTips = "x1" ]
+then
+ echo "displaying hints!, line 15 of linhes-run"
+fi
+
+
+if [ ! $SystemType = "Frontend_only" ]
+then
+ if [ -f ~/.configure ]
+ then
+ autocard.py -g &
+ MythVantage -b
+
+#0 yes
+#1 yes/autodetech
+#2 no
+ STATUS=$?
+ if [ ! $STATUS = 2 ]
+ then
+ sudo sv stop mythbackend
+ /usr/local/bin/mythtv-setup
+ sudo sv start mythbackend
+ #maybe run mythfilldatabase here
+ fi
+ rm ~/.configure
+ fi
+fi
+
+
+if [ x"$UseMythWelcome" = "x1" ]
+then
+ STARTCMD="/usr/bin/mythwelcome"
+else
+ STARTCMD="/usr/bin/mythfrontend -d"
+fi
+
+echo "====================================================================="
+echo "Starting $STARTCMD"
+
+
+while [ x = x ]
+do
+ if [ -f /tmp/nomfe ]
+ then
+ sleep 120
+ 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
+ fi
+echo "_______________________________________________________"
+done
+
diff --git a/abs/core-testing/LinHES-system/PKGBUILD b/abs/core-testing/LinHES-system/PKGBUILD
index 4a8cc25..433b44c 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=3
+pkgrel=4
arch=('i686')
MVDIR=$startdir/pkg/usr/LH
BINDIR=$startdir/pkg/usr/bin
@@ -8,7 +8,7 @@ install=LinHES.install
pkgdesc="scripts and things related to having a automated system"
depends=()
-binfiles="LinHES-start optimize_mythdb.py myth_mtc.py myth_mtc.sh"
+binfiles="LinHES-start optimize_mythdb.py myth_mtc.py myth_mtc.sh LinHES-run"
source=(LinHES-session LinHES-profile.sh $binfiles)