Class: Yast::InstSaveHardwareStatusClient

Inherits:
Client
  • Object
show all
Defined in:
src/lib/installation/clients/inst_save_hardware_status.rb

Instance Method Summary collapse

Instance Method Details

#mainObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'src/lib/installation/clients/inst_save_hardware_status.rb', line 28

def main
  textdomain "installation"

  Yast.import "GetInstArgs"

  return :auto if GetInstArgs.going_back # going backwards? # don't execute this once more

  Builtins.y2milestone("Saving configured devices...")

  @out = SCR.Execute(
    path(".target.bash_output"),
    "/usr/sbin/hwinfo --pci --block --mouse --keyboard --isdn --save-config=all\n" \
    "/usr/bin/test -d /var/lib/hardware/udi/org/freedesktop/Hal/devices && " \
    "/usr/bin/perl -pi -e \"s/hwinfo.configured = 'new'/hwinfo.configured = 'no'/\" " \
    "/var/lib/hardware/udi/org/freedesktop/Hal/devices/*"
  )

  Builtins.y2milestone("Result: %1", @out)

  :auto
end