Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local directory = 'spawnerserver'
- local programName = 'code'
- -- Delete Everything
- print('Uninstalling existing applications, ignore the error')
- shell.run('rm /*')
- -- Setup Directories
- print('Creating software directories')
- shell.run('mkdir /'..directory)
- -- Install Scripts
- print('Downloading and Installing Software')
- shell.run('pastebin get 3ageECYg /'..directory..'/'..programName)
- -- Create Update File
- print('Creating update command')
- local startupFile = fs.open('/update', 'w')
- startupFile.write('shell.run(\'pastebin run 17gTfQqv\')')
- 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()
Advertisement
Add Comment
Please, Sign In to add comment