10 lines
286 B
Lua
10 lines
286 B
Lua
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
|