Skip to content

Commit

Permalink
Dropped dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Apr 24, 2014
1 parent 4a1d5e0 commit 95e182f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/include/network/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@
module Yast
module NetworkRuntimeInclude
def initialize_network_runtime(include_target)

Yast.import "Arch"
Yast.import "Desktop"
Yast.import "Mode"
Yast.import "NetworkInterfaces"
Yast.import "Package"
Yast.import "Service"
Yast.import "PackageSystem"

textdomain "network"
end

Expand All @@ -53,21 +44,5 @@ def RunSuSEconfig
true
end

# Link detection
# @return true if link found
# @see #ethtool(8)
def HasLink
ifname = "eth0"

command = Builtins.sformat(
"ethtool %1 | grep -q 'Link detected: no'",
ifname
)
if Convert.to_integer(SCR.Execute(path(".target.bash"), command)) == 1
return false
end
true
end

end
end

0 comments on commit 95e182f

Please sign in to comment.