SHARE
TWEET

multi-startup v1.0.0

TangentFox Aug 24th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top