SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local directory = 'residentController' |
| 1 | + | local directory = 'namarReactor' |
| 2 | - | local programName = 'residentControl' |
| 2 | + | local programName = 'code' |
| 3 | ||
| 4 | -- Delete Everything | |
| 5 | print('Uninstalling existing applications, ignore the error')
| |
| 6 | shell.run('rm /*')
| |
| 7 | ||
| 8 | -- Setup Directories | |
| 9 | print('Creating software directories')
| |
| 10 | shell.run('mkdir /'..directory)
| |
| 11 | shell.run('mkdir /'..directory..'/Views')
| |
| 12 | ||
| 13 | -- Install Scripts | |
| 14 | print('Downloading and Installing Software')
| |
| 15 | - | shell.run('pastebin get ymnCw2Km /'..directory..'/Views/main.view')
|
| 15 | + | shell.run('pastebin get u78qjy2r /'..directory..'/Views/main.view')
|
| 16 | - | shell.run('pastebin get YTCe6Hn4 /'..directory..'/'..programName)
|
| 16 | + | shell.run('pastebin get rbTACve9 /'..directory..'/'..programName)
|
| 17 | ||
| 18 | -- Create Update File | |
| 19 | print('Creating update command')
| |
| 20 | local startupFile = fs.open('/update', 'w')
| |
| 21 | - | startupFile.write('shell.run(\'pastebin run 3dqRqGUH\')')
|
| 21 | + | startupFile.write('shell.run(\'pastebin run tj2eztwS\')')
|
| 22 | startupFile.close() | |
| 23 | ||
| 24 | -- Create Startup File | |
| 25 | print('Configuring device startup')
| |
| 26 | local startupFile = fs.open('/startup', 'w')
| |
| 27 | startupFile.write('shell.run(\''..directory..'/'..programName..'\')')
| |
| 28 | startupFile.close() | |
| 29 | ||
| 30 | print('Installation Complete, restarting device')
| |
| 31 | os.reboot() |