/**
 *  File:
 *    inst_repair.ycp
 *
 *  Module:
 *    YaST2 system repair tool - automatic error detection and repair tool for Linux.
 *
 *  Summary:
 *    This file provides the framework of the YaST2 system repair tool.
 *    It contains the main function that starts the scan and repair process. 
 *
 *  Author:
 *    Johannes Buchhold <jbuch@suse.de>
 *
 * $Id: inst_repair.ycp 20036 2004-10-29 07:06:28Z jsuchome $
 */
{

  import "Linuxrc";
  import "Mode";
  import "Stage";
  import "Wizard";

  Mode::SetMode ("update");
  Mode::SetMode ("installation");
  Stage::Set ("initial");

  y2milestone( "Starting yast repair tool" );

  Wizard::OpenNextBackDialog();

  any ret = WFM::CallFunction ("repair");

  Linuxrc::WriteYaSTInf($["Root" : "reboot", "RebootMsg" : "0"]);

  return ret;
}
