added loadlin.lua - for loading PsychOS from OpenOS
This commit is contained in:
parent
0f6d126eaf
commit
57e9a106c2
@ -1,3 +1,4 @@
|
|||||||
|
modules/base/loadlin.lua
|
||||||
modules/debug/log.lua
|
modules/debug/log.lua
|
||||||
modules/base/header.lua
|
modules/base/header.lua
|
||||||
modules/base/component.lua
|
modules/base/component.lua
|
||||||
|
9
modules/base/loadlin.lua
Normal file
9
modules/base/loadlin.lua
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
if pcall(require,"computer") then
|
||||||
|
print("OpenOS detected.")
|
||||||
|
print(os.getenv("_"))
|
||||||
|
local computer = require "computer"
|
||||||
|
local process = require "process"
|
||||||
|
os.execute("cp "..os.getenv("_").." /tmp/init.lua")
|
||||||
|
computer.setBootAddress(computer.tmpAddress())
|
||||||
|
computer.shutdown(true)
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user