Skip to content

Commit

Permalink
Select network service according product feature. fate#316768
Browse files Browse the repository at this point in the history
Also see bnc#854500
  • Loading branch information
mchf committed Jan 27, 2014
1 parent 19ade8d commit 681cae3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/clients/network_finish.rb
Expand Up @@ -42,6 +42,7 @@ def main
Yast.import "Linuxrc"
Yast.import "String"
Yast.import "NetworkService"
Yast.import "Lan"

@ret = nil
@func = ""
Expand Down Expand Up @@ -69,6 +70,15 @@ def main
"when" => [:installation, :update, :autoinst]
}
elsif @func == "Write"

if Lan.UseNetworkManager
NetworkService.use_network_manager
else
NetworkService.use_wicked
end

NetworkService.EnableDisableNow

# if network running, write network configuration
# also in case of IPv6 (bnc#477917)
if NetworkService.isNetworkRunning || NetworkService.isNetworkv6Running
Expand Down

0 comments on commit 681cae3

Please sign in to comment.