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
# File 'src/lib/y2network/widgets/kernel_options.rb', line 31

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

Instance Method Details

#helpObject


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

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


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

def init
  self.value = @options
end

#labelObject


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

def label
  Yast::Label.Options
end

#optObject


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

def opt
  [:hstretch]
end