Class: Yast::SaveNetworkClient

Inherits:
Client
  • Object
show all
Includes:
Logger
Defined in:
src/lib/network/clients/save_network.rb

Instance Method Summary collapse

Instance Method Details

#mainObject



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'src/lib/network/clients/save_network.rb', line 34

def main
  textdomain "network"

  Yast.import "DNS"
  Yast.import "FileUtils"
  Yast.import "Installation"
  Yast.import "String"
  Yast.import "Mode"
  Yast.import "Arch"

  Yast.include self, "network/routines.rb"
  Yast.include self, "network/complex.rb"

  # for update system don't copy network from inst_sys (#325738)
  if !Mode.update
    save_network
  else
    Builtins.y2milestone("update - skip save_network")
  end

  nil
end