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_restore_settings.ycp < prev    next >
Text File  |  2006-11-29  |  742b  |  42 lines

  1. /**
  2.  * File:    clients/inst_restore_settings
  3.  * Package:    Installation
  4.  * Summary:    Restore settings after restart during 2nd-stage installation
  5.  * Authors:    Anas Nashif <nashif@suse.de>
  6.  *
  7.  * $Id: inst_restore_settings.ycp 27936 2006-02-13 20:01:14Z olh $
  8.  *
  9.  */
  10.  
  11. {
  12.  
  13. textdomain "installation";
  14.  
  15. import "GetInstArgs";
  16. import "Service";
  17. import "NetworkDevices";
  18. import "SuSEFirewall";
  19.  
  20. if(GetInstArgs::going_back())
  21.     return `back;
  22.  
  23. foreach (string service, ["network"], {
  24.     if (Service::Enabled (service) && Service::Status (service) != 0)
  25.     {
  26.     Service::Start (service);
  27.     }
  28. });
  29.  
  30. NetworkDevices::Read ();
  31.  
  32. if (SuSEFirewall::IsEnabled () && ! SuSEFirewall::IsStarted ())
  33. {
  34.     SuSEFirewall::StartServices ();
  35. }
  36.  
  37.  
  38. return `auto;
  39.  
  40. /* EOF */
  41. }
  42.