added a module added before the other base stuff to load MultICE from OpenOS
This commit is contained in:
parent
833b5f5504
commit
cff032643e
@ -1,3 +1,4 @@
|
||||
base/loadlin.lua
|
||||
base/header.lua
|
||||
library/print.lua
|
||||
library/fs-min.lua
|
||||
|
@ -1,3 +1,4 @@
|
||||
base/loadlin.lua
|
||||
base/header.lua
|
||||
library/print.lua
|
||||
library/fs-min.lua
|
||||
|
10
modules/base/loadlin.lua
Normal file
10
modules/base/loadlin.lua
Normal file
@ -0,0 +1,10 @@
|
||||
if pcall(require,"computer") then
|
||||
print("OpenOS detected.")
|
||||
print("Please note that if you didn't call this with its full name, this will not work.")
|
||||
print("eg: kernel.lua rather than just kernel")
|
||||
local computer = require "computer"
|
||||
local process = require "process"
|
||||
os.execute("cp "..process.info().path.." /tmp/init.lua")
|
||||
computer.setBootAddress(computer.tmpAddress())
|
||||
computer.shutdown(true)
|
||||
end
|
Loading…
Reference in New Issue
Block a user