From b41216dfdb878482dfa7eeb62f5325bcf1b26330 Mon Sep 17 00:00:00 2001 From: osmarks Date: Mon, 13 Aug 2018 08:30:36 +0100 Subject: [PATCH] Improve installer installation --- installer.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer.lua b/installer.lua index c0dd9ad..df97773 100644 --- a/installer.lua +++ b/installer.lua @@ -29,4 +29,10 @@ if command == "update" then elseif command == "install" then install_wyvern() shell.run "edit wyvern_config.tbl" -- open editor for config edits + write "Program to run on startup |> " + local program = read() + local f = fs.open("startup", "w") + f.write('shell.run "' .. program .. '"') + f.close() + os.reboot() end \ No newline at end of file