diff options
Diffstat (limited to 'build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local')
-rwxr-xr-x | build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local index a8c2205..a436fe5 100755 --- a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local +++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local @@ -2,6 +2,8 @@ # # /etc/rc.local: Local multi-user startup script. # +. /etc/rc.conf +. /etc/rc.d/functions . /etc/profile . ${MV_ROOT}/bin/install_functions.sh @@ -22,11 +24,15 @@ function install_db { #check network parms +stat_busy "Checking network" init_network +stat_done + #check to see if mysql is running +stat_busy "Checking Mysql" ATTEMPT=0 -mysql_check && echo "Installing the initial database" &&install_db +mysql_check && printhl " Installing the initial database" &&install_db mythconverg_check status=$? while [ ! $status = 0 ] @@ -44,24 +50,31 @@ do fi if [ $ATTEMPT = 20 ] then - echo "Could not start mysql or install mythconverg within 20 attempts" - echo "Aborting install" + printhl " Could not start mysql or install mythconverg within 20 attempts" + printhl " Aborting install" exit 20 fi done - +stat_done #save some cmdline options +stat_busy "Parsing command line" parse_cmdline_2_db +bootsplash_setup +stat_done #search for remote +stat_busy "Checking for remote" init_remote -splash_setup +stat_done +printhl "Finished" + echo $CMDLINE | grep -qi NoX if [ $? = 0 ] then - echo "No auto X option found" + echo "" + printhl "No auto X option found" # /usr/bin/chvt 2 else /root/startx & |