From fc9460fc824f7acec87a895b775d0317cd1482f4 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Fri, 20 Dec 2013 16:29:46 +0100 Subject: [PATCH] Add license header to source files. --- src/cmdmain.lua | 8 ++++++++ src/conf_defaults.lua | 8 ++++++++ src/main.lua | 8 ++++++++ src/network/netconfig.lua | 8 ++++++++ src/network/signin.lua | 8 ++++++++ src/network/wlanconfig.lua | 8 ++++++++ src/rest/api/api_config.lua | 8 ++++++++ src/rest/api/api_info.lua | 8 ++++++++ src/rest/api/api_network.lua | 8 ++++++++ src/rest/api/api_printer.lua | 8 ++++++++ src/rest/api/api_sketch.lua | 8 ++++++++ src/rest/api/api_system.lua | 8 ++++++++ src/rest/api/api_test.lua | 8 ++++++++ src/rest/api/api_update.lua | 8 ++++++++ src/rest/request.lua | 8 ++++++++ src/rest/response.lua | 8 ++++++++ src/script/d3d-updater.lua | 7 +++++++ src/script/d3dapi | 5 +++++ src/script/dhcpcheck_init | 5 +++++ src/script/signin.sh | 5 +++++ src/script/wifibox_init | 5 +++++ src/util/access.lua | 8 ++++++++ src/util/logger.lua | 8 ++++++++ src/util/printer.lua | 8 ++++++++ src/util/settings.lua | 8 ++++++++ src/util/status.lua | 8 ++++++++ src/util/utils.lua | 8 ++++++++ 27 files changed, 203 insertions(+) mode change 100755 => 100644 src/script/d3d-updater.lua mode change 100755 => 100644 src/script/d3dapi mode change 100755 => 100644 src/script/dhcpcheck_init mode change 100755 => 100644 src/script/signin.sh mode change 100755 => 100644 src/script/wifibox_init diff --git a/src/cmdmain.lua b/src/cmdmain.lua index eaa73e5..d681e5a 100644 --- a/src/cmdmain.lua +++ b/src/cmdmain.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 wraps @{main.handle_request} in main.lua for command-line or CGI usage. -- It emulates the env table usually constructed by uhttpd-mod-lua. diff --git a/src/conf_defaults.lua b/src/conf_defaults.lua index 0aabf44..31b1351 100644 --- a/src/conf_defaults.lua +++ b/src/conf_defaults.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. -- The table names are used as configuration key names, where underscores ('`_`') may be used to denote semi-categories. diff --git a/src/main.lua b/src/main.lua index a92bed6..901a657 100644 --- a/src/main.lua +++ b/src/main.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. + + ---- -- Entry code of the REST API and secondary functionality. -- Primarily, this sets up the environment, processes a REST request and responds appropiately. diff --git a/src/network/netconfig.lua b/src/network/netconfig.lua index a126cd5..a3a1e8a 100644 --- a/src/network/netconfig.lua +++ b/src/network/netconfig.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. + + local utils = require('util.utils') local log = require('util.logger') local settings = require('util.settings') diff --git a/src/network/signin.lua b/src/network/signin.lua index 0525d5b..0b78d4e 100644 --- a/src/network/signin.lua +++ b/src/network/signin.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. + + --- -- TODO: document local log = require('util.logger') diff --git a/src/network/wlanconfig.lua b/src/network/wlanconfig.lua index b089a86..f93564b 100644 --- a/src/network/wlanconfig.lua +++ b/src/network/wlanconfig.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. + + local log = require('util.logger') local utils = require('util.utils') local uci = require('uci').cursor() diff --git a/src/rest/api/api_config.lua b/src/rest/api/api_config.lua index bdd0023..4c5518f 100644 --- a/src/rest/api/api_config.lua +++ b/src/rest/api/api_config.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. + + local log = require('util.logger') local utils = require('util.utils') local settings = require('util.settings') diff --git a/src/rest/api/api_info.lua b/src/rest/api/api_info.lua index d4d9831..e1b7303 100644 --- a/src/rest/api/api_info.lua +++ b/src/rest/api/api_info.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. + + local lfs = require('lfs') local log = require('util.logger') local utils = require('util.utils') diff --git a/src/rest/api/api_network.lua b/src/rest/api/api_network.lua index af5d1da..60158a7 100644 --- a/src/rest/api/api_network.lua +++ b/src/rest/api/api_network.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. + + local log = require('util.logger') local settings = require('util.settings') local utils = require('util.utils') diff --git a/src/rest/api/api_printer.lua b/src/rest/api/api_printer.lua index d784ae9..8fc2407 100644 --- a/src/rest/api/api_printer.lua +++ b/src/rest/api/api_printer.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. + + local lfs = require('lfs') local log = require('util.logger') local utils = require('util.utils') diff --git a/src/rest/api/api_sketch.lua b/src/rest/api/api_sketch.lua index b4ee73b..ad7c263 100644 --- a/src/rest/api/api_sketch.lua +++ b/src/rest/api/api_sketch.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 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). diff --git a/src/rest/api/api_system.lua b/src/rest/api/api_system.lua index 6a9d8de..8ebdb07 100644 --- a/src/rest/api/api_system.lua +++ b/src/rest/api/api_system.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. + + local utils = require('util.utils') local M = { diff --git a/src/rest/api/api_test.lua b/src/rest/api/api_test.lua index 75c829c..e2466b8 100644 --- a/src/rest/api/api_test.lua +++ b/src/rest/api/api_test.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. + + local l = require("util.logger") local ResponseClass = require("rest.response") diff --git a/src/rest/api/api_update.lua b/src/rest/api/api_update.lua index 37fccb0..60f5b56 100644 --- a/src/rest/api/api_update.lua +++ b/src/rest/api/api_update.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. + + local wifi = require('network.wlanconfig') local netconf = require('network.netconfig') local settings = require('util.settings') diff --git a/src/rest/request.lua b/src/rest/request.lua index cc707bc..48d4773 100644 --- a/src/rest/request.lua +++ b/src/rest/request.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 object represents an HTTP request object, part of the REST API. local util = require('util.utils') -- required for string:split() diff --git a/src/rest/response.lua b/src/rest/response.lua index ed5a16c..7e0660a 100644 --- a/src/rest/response.lua +++ b/src/rest/response.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. + + --- -- 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 diff --git a/src/script/d3d-updater.lua b/src/script/d3d-updater.lua old mode 100755 new mode 100644 index 6095c83..42bb48c --- a/src/script/d3d-updater.lua +++ b/src/script/d3d-updater.lua @@ -1,4 +1,11 @@ #!/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. -- It can both be used as a standalone command-line tool and as a Lua library. diff --git a/src/script/d3dapi b/src/script/d3dapi old mode 100755 new mode 100644 index 3fdc06f..3dbe552 --- a/src/script/d3dapi +++ b/src/script/d3dapi @@ -1,4 +1,9 @@ #!/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. # It is left in just as a precaution for a badly configured firmware invocation. diff --git a/src/script/dhcpcheck_init b/src/script/dhcpcheck_init old mode 100755 new mode 100644 index 11b05c5..2634c64 --- a/src/script/dhcpcheck_init +++ b/src/script/dhcpcheck_init @@ -1,4 +1,9 @@ #!/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=99 diff --git a/src/script/signin.sh b/src/script/signin.sh old mode 100755 new mode 100644 index 7552f06..0ef2fa8 --- a/src/script/signin.sh +++ b/src/script/signin.sh @@ -1,4 +1,9 @@ #!/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 while true; do diff --git a/src/script/wifibox_init b/src/script/wifibox_init old mode 100755 new mode 100644 index 81f9f81..cde12ea --- a/src/script/wifibox_init +++ b/src/script/wifibox_init @@ -1,4 +1,9 @@ #!/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=22 diff --git a/src/util/access.lua b/src/util/access.lua index f1858e9..ccb100b 100644 --- a/src/util/access.lua +++ b/src/util/access.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. + + local log = require('util.logger') local utils = require('util.utils') diff --git a/src/util/logger.lua b/src/util/logger.lua index 6824337..e10072c 100644 --- a/src/util/logger.lua +++ b/src/util/logger.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. + + --- -- Logging facilities. diff --git a/src/util/printer.lua b/src/util/printer.lua index 5ff1f80..1c619eb 100644 --- a/src/util/printer.lua +++ b/src/util/printer.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. + + local log = require('util.logger') local utils = require('util.utils') local printDriver = require('print3d') diff --git a/src/util/settings.lua b/src/util/settings.lua index 51bd8ca..c6f9a9b 100644 --- a/src/util/settings.lua +++ b/src/util/settings.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. + + --- -- 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 diff --git a/src/util/status.lua b/src/util/status.lua index f2368a0..3f91736 100644 --- a/src/util/status.lua +++ b/src/util/status.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. + + local log = require('util.logger') local utils = require('util.utils') diff --git a/src/util/utils.lua b/src/util/utils.lua index 43c16b6..a6c3e37 100644 --- a/src/util/utils.lua +++ b/src/util/utils.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. + + --- -- The unavoidable collection of utility functions. --