summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/LinHES-session
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-20 17:54:57 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-20 17:54:57 (GMT)
commitb1228a681e74db2c56d97e5489fa01c4f649ade4 (patch)
tree3543f17bd85fb2d9ecf9b75519bb64d0b401bddd /abs/core/LinHES-system/LinHES-session
parent8fa65f7eeefe6c939e62ed55ab255706e2fd437e (diff)
downloadlinhes_pkgbuild-b1228a681e74db2c56d97e5489fa01c4f649ade4.zip
linhes_pkgbuild-b1228a681e74db2c56d97e5489fa01c4f649ade4.tar.gz
linhes_pkgbuild-b1228a681e74db2c56d97e5489fa01c4f649ade4.tar.bz2
LinHES-system: add be_check.py and modify LinHES-session to use it.
This will stop mythfrontend/mythwelcome from starting if be_check can't connect to the master backend. Mostly this was done to stop mythfronted from complaining about not being able to contact the MBE and in the worst case displaying the DB connection configuration screen. refs #886
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-xabs/core/LinHES-system/LinHES-session15
1 files changed, 13 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session
index a5632fd..d55b900 100755
--- a/abs/core/LinHES-system/LinHES-session
+++ b/abs/core/LinHES-system/LinHES-session
@@ -317,10 +317,21 @@ function start_myth() {
echo "====================================================================="
echo "Starting $STARTCMD"
- #firstboot.sh &
+ if [ "x$bewait" = "x1" ]
+ then
+ #do init check
+ /usr/LH/bin/be_check.py
+ rc=$?
+ while [ $rc -ne 0 ]
+ do
+ msg "Waiting for connection to MythBackend"
+ /usr/LH/bin/be_check.py
+ rc=$?
+ sleep 6
+ done
+ fi
#continue on with starting mythtv
-
if [ x$STARTUP_STYLE = xenhanced ]
then
start_myth_mv