Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. --micrOS Server Edition postinit.lua
  2. --Runs the server components, should never exit.
  3. print("System Initialisation complete.")
  4. print("Loading micrOS Server....")
  5. checkNetwork()
  6. initAPIs()
  7. print("Beginning initialisation of module system.")
  8. modules_init()
  9. modules_loadconfig()
  10. print("Discovering modules....")
  11. enumerate_modules()
  12. print("Modules discovered: " + module_count)
  13. for module in modules {
  14. current_module = unpack_module(module)
  15. loaded_modules[current_module.name]["name"] = current_module.name
  16. loaded_modules[current_module.name]["version"] = current_module.name
  17. loaded_modules[current_module.name]["bootcode"] = current_module.code
  18. }
  19. for module in loaded_module {
  20. print("micrOS server: Preparing module: " + module.name)
  21. prepare_module(module, module.bootcode)
  22. print("micrOS server: Module now ready for launch")
  23. }
  24. init_shell_module()
  25. print("micrOS server: Executing modules.")
  26. coroutines_start()
  27. coroutines_loop()
  28.  
  29. print("micrOS Server exited.")
  30. print("System halted.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement