Advertisement
TangentFox

multi-startup v1.0.0

Aug 24th, 2019
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. -- run multiple programs at startup
  2. local function run(dir)
  3.   local list = fs.list(dir)
  4.   for i=1, #list do
  5.     local path = dir.."/"..list[i]
  6.     if fs.isDir(path) then
  7.       run(path)
  8.     else
  9.       shell.run(path)
  10.     end
  11.   end
  12. end
  13. run("/.startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement