Read, save, or rewrite the installed EEPROM contents.
- Repository:
opencomputers - System:
openos - Type:
command
OpenComputers/src\main\resources\assets\opencomputers\loot\openos\bin\flash.lua
flash -lflash -r FILEflash [-q] BIOS_FILE [LABEL]Manage the currently installed EEPROM. You can print the current ROM contents, save them to a file, or flash a BIOS file into the EEPROM and optionally update its label.
FILE: Target file used when reading the current EEPROM contents with-r.BIOS_FILE: Binary or Lua BIOS image to write into the EEPROM.LABEL: Optional new EEPROM label. If omitted in interactive mode, the command prompts for one.
-q: Quiet mode. Skip confirmation prompts and status messages.-l: Print the current EEPROM contents to standard output.-r: Read the current EEPROM contents and save them to a file.
flash -lPrint the currently installed EEPROM image.
flash -r backup.luaSave the current EEPROM contents to backup.lua.
flash bios.lua MyBIOSWrite bios.lua into the EEPROM and set its label to MyBIOS.
- Interactive write mode prompts before flashing and warns not to power down during the operation.
- When
-ris used and the target file already exists, non-quiet mode asks for overwrite confirmation first.