Module: Yast::NetworkRuntimeInclude
- Defined in:
- ../../src/include/network/runtime.rb
Instance Method Summary (collapse)
-
- (Object) HasLink
Link detection.
- - (Object) initialize_network_runtime(include_target)
-
- (Object) RunSuSEconfig
Run SuSEconfig.
Instance Method Details
- (Object) HasLink
Link detection
59 60 61 62 63 64 65 66 67 68 69 70 |
# File '../../src/include/network/runtime.rb', line 59 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 |
- (Object) initialize_network_runtime(include_target)
31 32 33 34 35 36 37 38 39 40 41 42 |
# File '../../src/include/network/runtime.rb', line 31 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 |
- (Object) RunSuSEconfig
Run SuSEconfig
46 47 48 49 50 51 52 53 54 |
# File '../../src/include/network/runtime.rb', line 46 def RunSuSEconfig Builtins.y2milestone("Updating sendmail and/or postfix configuration.") SCR.Execute( path(".target.bash"), "/usr/lib/sendmail.d/update 2>/dev/null" ) SCR.Execute(path(".target.bash"), "/usr/sbin/config.postfix 2>/dev/null") true end |