local directory = 'masterserver' local programName = 'code' -- Delete Everything print('Uninstalling existing applications, ignore the error') shell.run('rm /*') -- Install APIs print('Installing Dependencies') shell.run('pastebin get 4nRg9CHU json') -- Setup Directories print('Creating software directories') shell.run('mkdir /'..directory) -- Install Scripts print('Downloading and Installing Software') shell.run('pastebin get rwGmxSfe /'..directory..'/'..programName) -- Create Update File print('Creating update command') local startupFile = fs.open('/update', 'w') startupFile.write('shell.run(\'pastebin run 3sMnLmsn\')') startupFile.close() -- Create Startup File print('Configuring device startup') local startupFile = fs.open('/startup', 'w') startupFile.write('shell.run(\''..directory..'/'..programName..'\')') startupFile.close() print('Installation Complete, restarting device') os.reboot()