-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform explicit device activation in case of ssh install. bnc#993587
- Loading branch information
Showing
4 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# encoding: utf-8 | ||
|
||
require "yast" | ||
|
||
module Yast | ||
module Wicked | ||
BASH_PATH = Path.new(".target.bash") | ||
|
||
# Reloads configuration for each device named in devs | ||
# | ||
# @devs [Array] list of device names | ||
# @return true if configuration was reloaded | ||
def reload_config(devs) | ||
raise ArgumentError if devs.nil? | ||
return true if devs.empty? | ||
|
||
SCR.Execute(BASH_PATH, "wicked ifreload #{devs.join(" ")}").zero? | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters