Skip to content

Commit

Permalink
Merge pull request #831 from yast/duplicate_udev_key
Browse files Browse the repository at this point in the history
Update current udev rule if not exist or the key in use is not the :bus_id
  • Loading branch information
teclator committed Jun 11, 2019
2 parents 1b50f44 + 30ca5ac commit e8aab16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/include/network/lan/complex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ def UpdateSlaves
case LanItems.GetDeviceType(current)
when "bond"
LanItems.startmode = "hotplug"

LanItems.update_item_udev_rule!(:bus_id)
if LanItems.current_udev_rule.empty? || LanItems.GetItemUdev("KERNELS").empty?
LanItems.update_item_udev_rule!(:bus_id)
end
when "br"
LanItems.ipaddr = ""
end
Expand Down

0 comments on commit e8aab16

Please sign in to comment.