added a module added before the other base stuff to load MultICE from OpenOS

This commit is contained in:
Izaya 2017-05-28 11:58:53 +00:00
parent 833b5f5504
commit cff032643e
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,4 @@
base/loadlin.lua
base/header.lua base/header.lua
library/print.lua library/print.lua
library/fs-min.lua library/fs-min.lua

View File

@ -1,3 +1,4 @@
base/loadlin.lua
base/header.lua base/header.lua
library/print.lua library/print.lua
library/fs-min.lua library/fs-min.lua

10
modules/base/loadlin.lua Normal file
View 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