Class: Y2Network::Widgets::KernelOptions

Inherits:
CWM::InputField
  • Object
show all
Defined in:
src/lib/y2network/widgets/kernel_options.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ KernelOptions

Constructor

Parameters:

  • options (String)

    Driver options



31
32
33
34
35
# File 'src/lib/y2network/widgets/kernel_options.rb', line 31

def initialize(options)
  super()
  textdomain "network"
  @options = options
end

Instance Method Details

#helpObject



41
42
43
44
45
46
47
48
# File 'src/lib/y2network/widgets/kernel_options.rb', line 41

def help
  _(
    "<p>Additionally, specify <b>Options</b> for the kernel module. Use this\n" \
    "format: <i>option</i>=<i>value</i>. Each entry should be space-separated, " \
    "for example: <i>io=0x300 irq=5</i>. <b>Note:</b> If two cards are \n" \
    "configured with the same module name, the options will be merged while saving.</p>\n"
  )
end

#initObject



54
55
56
# File 'src/lib/y2network/widgets/kernel_options.rb', line 54

def init
  self.value = @options
end

#labelObject



37
38
39
# File 'src/lib/y2network/widgets/kernel_options.rb', line 37

def label
  Yast::Label.Options
end

#optObject



50
51
52
# File 'src/lib/y2network/widgets/kernel_options.rb', line 50

def opt
  [:hstretch]
end