Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local run = os.run
- local args = {...} -- keep the args so that they can be passed to opus.lua
- os.shutdown = function()
- _ENV.multishell = nil -- prevent sys/apps/shell.lua erroring for odd reasons
- local success, err = pcall(function()
- run(_ENV, '/rom/programs/shell.lua', table.unpack(args))
- end)
- term.redirect(term.native())
- if not sucess then
- printError(err)
- end
- print("Press any key to continue.")
- os.pullEvent("key")
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement