diff options
author | James Meyer <james.meyer@operamail.com> | 2012-12-20 17:54:57 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-12-20 17:54:57 (GMT) |
commit | b1228a681e74db2c56d97e5489fa01c4f649ade4 (patch) | |
tree | 3543f17bd85fb2d9ecf9b75519bb64d0b401bddd /abs/core/LinHES-system/LinHES-session | |
parent | 8fa65f7eeefe6c939e62ed55ab255706e2fd437e (diff) | |
download | linhes_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-x | abs/core/LinHES-system/LinHES-session | 15 |
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 |