summaryrefslogtreecommitdiffstats
path: root/build_tools/larch8
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/larch8')
-rwxr-xr-xbuild_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local9
1 files changed, 5 insertions, 4 deletions
diff --git a/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local
index 2d488a2..2379f2f 100755
--- a/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local
+++ b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/etc/rc.local
@@ -33,9 +33,6 @@ mythconverg_check
status=$?
while [ ! $status = 0 ]
do
- ((ATTEMPT=ATTEMPT+1))
- /etc/rc.d/mysqld stop
- sleep 2
/etc/rc.d/mysqld start
mysqlstatus=$?
if [ $mysqlstatus = 0 ]
@@ -43,7 +40,11 @@ do
mysql_check && install_db
mythconverg_check
status=$?
- fi
+ else
+ ((ATTEMPT=ATTEMPT+1))
+ /etc/rc.d/mysqld stop
+ sleep 2
+ fi
if [ $ATTEMPT = 20 ]
then
printhl " Could not start mysql or install mythconverg within 20 attempts"