You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

  1. #!/usr/bin/env lua
  2. --[[
  3. Copyright (C) 2018 Jianhui Zhao <jianhuizhao329@gmail.com>
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
  15. USA
  16. --]]
  17. local uloop = require "uloop"
  18. local uh = require "uhttpd"
  19. local auth = require "wifidog-ng.auth"
  20. local ubus = require "wifidog-ng.ubus"
  21. local version = require "wifidog-ng.version"
  22. local heartbeat = require "wifidog-ng.heartbeat"
  23. uh.log(uh.LOG_INFO, "Version: " .. version.string())
  24. uloop.init()
  25. ubus.init()
  26. auth.init()
  27. heartbeat.start()
  28. uloop.run()