Method: ComputeUnit::Device#unlock_rom

Defined in:
lib/compute_unit/device.rb

#unlock_romString

must be root

Returns:

  • (String)
    • writes a 1 to the rom file, therby unlocking it for reading



50
51
52
# File 'lib/compute_unit/device.rb', line 50

def unlock_rom
  File.write(rom_path, '1') if File.exist?(rom_path)
end