Files
HyperionOS/src/disks/2f/burn.lua

14 lines
260 B
Lua

local biosData = ({...})[1]
local disks = {}
for i,v in component.list() do
if i == "disk" then
disks[v.id]=v
end
end
local bootDisk = disks[biosData.bootDrive.open("/config").read()]
if not bootDisk.type=="udd" then
error("invalid")
end