velx loader
This commit is contained in:
parent
441c9322f9
commit
ca4706257f
@ -1,3 +1,22 @@
|
||||
for d in component.list("drive") do
|
||||
local function boot_velx(addr, path)
|
||||
|
||||
end
|
||||
|
||||
local eeprom = component.proxy(component.list("eeprom")())
|
||||
local config = eeprom.getData()
|
||||
local addr, path = config:match("^(.+);(.+)$")
|
||||
if not addr then
|
||||
addr = config
|
||||
path = "boot.velx"
|
||||
else
|
||||
return boot_velx(addr, path)
|
||||
end
|
||||
|
||||
if not component.invoke(addr, "exists", path) then
|
||||
for d in component.list("filesystem") do
|
||||
if (component.invoke(d, "exists", "boot.velx")) then
|
||||
eeprom.setData(d..";boot.velx")
|
||||
boot_velx(d, "boot.velx")
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user