Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- The main script for OC-OS --
- -- Preliminary formalities --
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- print('Welcome to OC-OS 0.01.')
- sleep(0.01)
- -- The main script --
- version = os.version()
- print('System time is '..textutils.formatTime(os.time(),true))
- sleep(0.01)
- shell.setDir('/sys')
- os.loadAPI('/sys/log')
- os.loadAPI('/sys/updates')
- os.loadAPI('/sys/desktop')
- sleep(0.01)
- log.info('Loaded required APIs')
- if not version == 'CraftOS 1.8' then
- sleep(0.01)
- log.warn('Running on unsupported CraftOS version')
- end
- rednet.host('ocnp', 'OCPC')
- sleep(0.01)
- log.info('Set system hostname to OCPC using the OC Network Protocol')
- sleep(0.01)
- log.info('Loading desktop environment')
- desktop.init()
Add Comment
Please, Sign In to add comment