Improve installer installation

This commit is contained in:
osmarks 2018-08-13 08:30:36 +01:00
parent c32e15e097
commit b41216dfdb
1 changed files with 6 additions and 0 deletions

View File

@ -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