OC-MultICE/modules/base/loadlin.lua

10 lines
286 B
Lua
Raw Normal View History

if pcall(require,"computer") then
print("OpenOS detected.")
2017-05-29 03:29:23 +10:00
print(os.getenv("_"))
local computer = require "computer"
local process = require "process"
2017-05-29 03:29:23 +10:00
os.execute("cp "..os.getenv("_").." /tmp/init.lua")
computer.setBootAddress(computer.tmpAddress())
computer.shutdown(true)
end