forked from Hyperion/HyperionOS
working on require needs to be done before EOW
This commit is contained in:
14
src/disks/2f/burn.lua
Normal file
14
src/disks/2f/burn.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user