mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 09:18:05 -04:00
Merge pull request #2118 from payonel/openloader-installer
make openloader installer compatable with openos install tool
This commit is contained in:
commit
1d5c69924f
@ -0,0 +1 @@
|
|||||||
|
os.execute(install.from .. "/bin/opl-flash.lua")
|
@ -153,7 +153,7 @@ end
|
|||||||
local say = not (options.q or options.quiet) and print or function()end
|
local say = not (options.q or options.quiet) and print or function()end
|
||||||
say ("Do you really want to flash openloader to EEPROM("..tostring(#eeprom).." bytes)[Y/n]")
|
say ("Do you really want to flash openloader to EEPROM("..tostring(#eeprom).." bytes)[Y/n]")
|
||||||
|
|
||||||
if options.q or options.quiet or io.read():lower() == "y" then
|
if options.q or options.quiet or ((io.read() or "n").."y"):match("^%s*[Yy]") then
|
||||||
say("Flashing... Do not reboot now!")
|
say("Flashing... Do not reboot now!")
|
||||||
component.eeprom.set(eeprom)
|
component.eeprom.set(eeprom)
|
||||||
component.eeprom.setLabel((type(options.label) == "string" and options.label) or version)
|
component.eeprom.setLabel((type(options.label) == "string" and options.label) or version)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user