Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --micrOS Server Edition postinit.lua
- --Runs the server components, should never exit.
- print("System Initialisation complete.")
- print("Loading micrOS Server....")
- checkNetwork()
- initAPIs()
- print("Beginning initialisation of module system.")
- modules_init()
- modules_loadconfig()
- print("Discovering modules....")
- enumerate_modules()
- print("Modules discovered: " + module_count)
- for module in modules {
- current_module = unpack_module(module)
- loaded_modules[current_module.name]["name"] = current_module.name
- loaded_modules[current_module.name]["version"] = current_module.name
- loaded_modules[current_module.name]["bootcode"] = current_module.code
- }
- for module in loaded_module {
- print("micrOS server: Preparing module: " + module.name)
- prepare_module(module, module.bootcode)
- print("micrOS server: Module now ready for launch")
- }
- init_shell_module()
- print("micrOS server: Executing modules.")
- coroutines_start()
- coroutines_loop()
- print("micrOS Server exited.")
- print("System halted.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement