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