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 / inst_iscsi-client.ycp < prev    next >
Text File  |  2006-11-29  |  1KB  |  54 lines

  1. /**
  2.  * File:    clients/iscsi-client.ycp
  3.  * Package:    Configuration of iscsi-client
  4.  * Summary:    Main file
  5.  * Authors:    Michal Zugec <mzugec@suse.cz>
  6.  *
  7.  * $Id: inst_iscsi-client.ycp 30374 2006-04-24 05:55:11Z mzugec $
  8.  *
  9.  * Main file for iscsi-client configuration. Uses all other files.
  10.  */
  11.  
  12. {
  13.  
  14. /***
  15.  * <h3>Configuration of iscsi-client</h3>
  16.  */
  17.  
  18. textdomain "iscsi-client";
  19.  
  20. /* The main () */
  21. y2milestone ("----------------------------------------");
  22. y2milestone ("IscsiClient module started");
  23.  
  24. import "Progress";
  25. import "Report";
  26. import "Summary";
  27. import "ModuleLoading";
  28. import "Packages";
  29. include "iscsi-client/wizards.ycp";
  30.  
  31. /* main ui function */
  32. any ret = nil;
  33.  
  34. y2milestone("start open-iscsi");
  35. // check initiator name, create if not exists
  36. IscsiClient::checkInitiatorName();
  37. ModuleLoading::Load("iscsi_tcp", "", "", "", false, true);
  38. // start daemon before
  39. SCR::Execute(.background.run_output_err, "iscsid");
  40. // run dialog
  41. ret = MainSequence();
  42. y2debug("MainSequence ret=%1", ret);
  43. // add package open-iscsi to installed system
  44. Packages::addAdditionalPackage("open-iscsi");
  45.  
  46. /* Finish */
  47. y2milestone("IscsiClient module finished");
  48. y2milestone("----------------------------------------");
  49.  
  50. return ret;
  51.  
  52. /* EOF */
  53. }
  54.