mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2025-01-03 00:13:47 +01:00
Add license header to source files.
This commit is contained in:
parent
1af6ad00cf
commit
fc9460fc82
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- This file wraps @{main.handle_request} in main.lua for command-line or CGI usage.
|
-- This file wraps @{main.handle_request} in main.lua for command-line or CGI usage.
|
||||||
-- It emulates the env table usually constructed by uhttpd-mod-lua.
|
-- It emulates the env table usually constructed by uhttpd-mod-lua.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- This file contains all valid configuration keys, their default values and optional constraints.
|
-- This file contains all valid configuration keys, their default values and optional constraints.
|
||||||
-- The table names are used as configuration key names, where underscores ('`_`') may be used to denote semi-categories.
|
-- The table names are used as configuration key names, where underscores ('`_`') may be used to denote semi-categories.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
----
|
----
|
||||||
-- Entry code of the REST API and secondary functionality.
|
-- Entry code of the REST API and secondary functionality.
|
||||||
-- Primarily, this sets up the environment, processes a REST request and responds appropiately.
|
-- Primarily, this sets up the environment, processes a REST request and responds appropiately.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local settings = require('util.settings')
|
local settings = require('util.settings')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- TODO: document
|
-- TODO: document
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
local uci = require('uci').cursor()
|
local uci = require('uci').cursor()
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
local settings = require('util.settings')
|
local settings = require('util.settings')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local lfs = require('lfs')
|
local lfs = require('lfs')
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local settings = require('util.settings')
|
local settings = require('util.settings')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local lfs = require('lfs')
|
local lfs = require('lfs')
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
This module uses the Lua filesystem library to iterate over all sketches.
|
This module uses the Lua filesystem library to iterate over all sketches.
|
||||||
A more flexible approach would be to use an index file (like the update module does).
|
A more flexible approach would be to use an index file (like the update module does).
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local l = require("util.logger")
|
local l = require("util.logger")
|
||||||
local ResponseClass = require("rest.response")
|
local ResponseClass = require("rest.response")
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local wifi = require('network.wlanconfig')
|
local wifi = require('network.wlanconfig')
|
||||||
local netconf = require('network.netconfig')
|
local netconf = require('network.netconfig')
|
||||||
local settings = require('util.settings')
|
local settings = require('util.settings')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- This object represents an HTTP request object, part of the REST API.
|
-- This object represents an HTTP request object, part of the REST API.
|
||||||
local util = require('util.utils') -- required for string:split()
|
local util = require('util.utils') -- required for string:split()
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- The REST response object handles all operations necessary to generate a HTTP response.
|
-- The REST response object handles all operations necessary to generate a HTTP response.
|
||||||
-- It knows about the request, ensures the correct HTTP headers are present and
|
-- It knows about the request, ensures the correct HTTP headers are present and
|
||||||
|
7
src/script/d3d-updater.lua
Executable file → Normal file
7
src/script/d3d-updater.lua
Executable file → Normal file
@ -1,4 +1,11 @@
|
|||||||
#!/usr/bin/env lua
|
#!/usr/bin/env lua
|
||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
--- This script provides an interface to upgrade or downgrade the Doodle3D wifibox.
|
--- This script provides an interface to upgrade or downgrade the Doodle3D wifibox.
|
||||||
-- It can both be used as a standalone command-line tool and as a Lua library.
|
-- It can both be used as a standalone command-line tool and as a Lua library.
|
||||||
|
5
src/script/d3dapi
Executable file → Normal file
5
src/script/d3dapi
Executable file → Normal file
@ -1,4 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013, Doodle3D
|
||||||
|
# This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
# See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
# NOTE: redirection to $LOG_FILE is not required anymore, it is configurable now.
|
# NOTE: redirection to $LOG_FILE is not required anymore, it is configurable now.
|
||||||
# It is left in just as a precaution for a badly configured firmware invocation.
|
# It is left in just as a precaution for a badly configured firmware invocation.
|
||||||
|
5
src/script/dhcpcheck_init
Executable file → Normal file
5
src/script/dhcpcheck_init
Executable file → Normal file
@ -1,4 +1,9 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
# This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013, Doodle3D
|
||||||
|
# This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
# See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
# start after all other scripts
|
# start after all other scripts
|
||||||
START=99
|
START=99
|
||||||
|
5
src/script/signin.sh
Executable file → Normal file
5
src/script/signin.sh
Executable file → Normal file
@ -1,4 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013, Doodle3D
|
||||||
|
# This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
# See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
sleep 5s
|
sleep 5s
|
||||||
while true; do
|
while true; do
|
||||||
|
5
src/script/wifibox_init
Executable file → Normal file
5
src/script/wifibox_init
Executable file → Normal file
@ -1,4 +1,9 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
# This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013, Doodle3D
|
||||||
|
# This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
# See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
# start after networking
|
# start after networking
|
||||||
START=22
|
START=22
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Logging facilities.
|
-- Logging facilities.
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
local printDriver = require('print3d')
|
local printDriver = require('print3d')
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- The settings interface reads and writes configuration keys using [UCI](http://wiki.openwrt.org/doc/uci).
|
-- The settings interface reads and writes configuration keys using [UCI](http://wiki.openwrt.org/doc/uci).
|
||||||
-- All keys have pre-defined defaults in @{conf_defaults} which will be used
|
-- All keys have pre-defined defaults in @{conf_defaults} which will be used
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
local log = require('util.logger')
|
local log = require('util.logger')
|
||||||
local utils = require('util.utils')
|
local utils = require('util.utils')
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
--
|
||||||
|
-- @copyright 2013, Doodle3D
|
||||||
|
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- The unavoidable collection of utility functions.
|
-- The unavoidable collection of utility functions.
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user