Add boot image file. Moved autorun files to boot/autorun

This commit is contained in:
Alessandro Proto 2023-02-02 12:30:41 +01:00
parent 2ed070f7ab
commit dc7958d206
7 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View file

@ -20,7 +20,7 @@ local function showError(err)
end end
function os.version() function os.version()
return "CapyOS 0.0.1" return "CapyOS 0.0.2"
end end
term.setSize(51, 19) term.setSize(51, 19)
@ -29,9 +29,9 @@ gpu.setScale(2)
term.setPos(1, 1) term.setPos(1, 1)
term.write(_HOST) term.write(_HOST)
local files = fs.list("/boot") local files = fs.list("/boot/autorun")
for k, v in ipairs(files) do for k, v in ipairs(files) do
local func, err = loadfile("/boot/" .. v) local func, err = loadfile("/boot/autorun/" .. v)
if not func then if not func then
showError(err) showError(err)
break break