Developing lightweight computation at the DSG edge

Commit d5dd6782 authored by p4u's avatar p4u
Browse files

Added gwck and tinyproxy to qMp submenu. Removed old qmp-luci package

parent 544296cf
......@@ -36,7 +36,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/gwck-qmp
SECTION:=net
CATEGORY:=Network
CATEGORY:=qMp
SUBMENU:=Routing and Redirection
TITLE:=Check gateway and control bmx6 tunnels.
URL:=http://qmp.net/projects/gwck
......
--[[
Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
The full GNU General Public License is included in this distribution in
the file called "COPYING".
--]]
module("luci.controller.qmp.qmp", package.seeall)
function index()
entry({"qmp","status"}, call("action:stauts"), "Click here", 10).dependent=false
end
function action_status()
luci.http.prepare_content("text/plain")
luci.http.write("Quick Mesh Project [qMp]")
end
--[[
Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
The full GNU General Public License is included in this distribution in
the file called "COPYING".
--]]
require("luci.sys")
m = Map("qmp", "Quick Mesh Project")
real_interfaces = {'eth','ath','wlan','wl'}
int = m:section(NamedSection, "interfaces", "qmp", "Interfaces", "Devices to include into Quick Mesh deployment")
int.addremove = False
-- Getting the physical (real) interfaces
-- interfaces matching with real_interfaces and without dot
phy_int = {}
for i,d in ipairs(luci.sys.net.devices()) do
for i,r in ipairs(real_interfaces) do
if string.find(d,r) ~= nil then
if string.find(d,"%.") == nil then
table.insert(phy_int,d)
end
end
end
end
-- Option: lan_devices
lan = int:option(MultiValue, "lan_devices", "LAN devices")
for i,l in ipairs(phy_int) do
lan:value(l,l)
end
-- Option wan_device
wan = int:option(ListValue, "wan_device", "WAN device")
for i,w in ipairs(phy_int) do
wan:value(w,w)
end
wan:value(" "," ")
-- Option mesh_devices
mesh = int:option(MultiValue, "mesh_devices", "MESH devices")
for i,l in ipairs(phy_int) do
mesh:value(l,l)
end
--int:option(Value, "lan_devices", "LAN devices", "LAN devices")
--int:option(Value, "wan_device", "WAN device", "WAN devices")
--int:option(Value, "mesh_devices", "Mesh devices", "MESH devices")
return m
......@@ -24,7 +24,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/qmp-tinyproxy
SECTION:=net
CATEGORY:=Base system
CATEGORY:=qMp
TITLE:=Tinyproxy is a lightweight HTTP and HTTPS proxy with support splash
URL:=http://tinyproxy.sourceforge.net/
DEPENDS:=+tinymce
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment