OC-MultICE/modules/base/loadlin.lua

11 lines
408 B
Lua
Raw Normal View History

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