home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
clients
/
autoinst_test_clone.ycp
< prev
next >
Wrap
Text File
|
2006-11-29
|
752b
|
31 lines
{
textdomain "autoinst";
import "XML";
import "Wizard";
import "Popup";
import "Mode";
Mode::SetMode ("autoinst_config");
include "autoinstall/xml.ycp";
Wizard::CreateDialog();
Popup::ShowFeedback(_("Reading configuration data..."), _("This may take a while"));
profileSetup();
string client = "";
if (size (WFM::Args ()) > 0 && (is (WFM::Args(0), string)))
{
client = (string)WFM::Args(0);
}
WFM::CallFunction( client + "_auto", ["Read"]);
any result = WFM::CallFunction( client + "_auto", ["Export"]);
map current = $[];
current[client] = result;
XML::YCPToXMLFile(`profile, current, client + ".xml");
Popup::ClearFeedback();
Wizard::CloseDialog();
}