Class: Y2Network::Startmodes::Auto

Inherits:
Y2Network::Startmode show all
Includes:
Yast::I18n
Defined in:
src/lib/y2network/startmodes/auto.rb

Overview

Auto start mode

Interface will be set up as soon as it is available (and service network was started). This either happens at boot time when network is starting or via hotplug when a interface is added to the system (by adding a device or loading a driver). To be backward compliant onboot, on and boot are aliases for auto. TODO: when reading use that aliases

Instance Attribute Summary

Attributes inherited from Y2Network::Startmode

#name

Instance Method Summary collapse

Methods inherited from Y2Network::Startmode

#==, all, create

Constructor Details

#initializeAuto


34
35
36
37
38
# File 'src/lib/y2network/startmodes/auto.rb', line 34

def initialize
  textdomain "network"

  super("auto")
end

Instance Method Details

#long_descriptionObject


44
45
46
47
48
# File 'src/lib/y2network/startmodes/auto.rb', line 44

def long_description
  _(
    "Started automatically at boot"
  )
end

#to_human_stringObject


40
41
42
# File 'src/lib/y2network/startmodes/auto.rb', line 40

def to_human_string
  _("At Boot Time")
end