Developing lightweight computation at the DSG edge

Commit d071dba9 authored by hakais's avatar hakais
Browse files

Fixed luci error, and added new freatures

parent 7a4ac485
......@@ -16,7 +16,7 @@ configure() {
echo "[Configuring networking]"
. $QMP_DIR/qmp_functions.sh
qmp_configure
/etc/init.d/network restart
touch "$CONTROL_FILE"
echo "Done"
......
module("luci.controller.qmp.qmp", package.seeall)
module("luci.controller.qmp", package.seeall)
function index()
entry({"qmp"}, call("action_stauts"), "qMp", 1).dependent=false
-- Making qmp as default
local root = node()
root.target = alias("qmp")
root.index = true
-- Main window with auth enabled
overview = entry({"qmp"}, template("qmp/overview"), "qMp", 1)
overview.dependent = false
overview.sysauth = "root"
overview.sysauth_authenticator = "htmlauth"
-- Rest of entries
entry({"qmp","network"}, cbi("qmp/config"), "Network", 5).dependent=false
entry({"qmp","wireless"}, cbi("qmp/wireless"), "Wireless", 6).dependent=false
end
......
......@@ -5,11 +5,11 @@ m = Map("qmp", "Quick Mesh Project")
ethernet_interfaces = { 'eth', 'ath', 'wlan' }
wireless_interfaces = { 'ath', 'wlan' }
eth_section = m:section(NamedSection, "interfaces", "qmp", "Ethernet interfaces", "Ethernet devices")
eth_section = m:section(NamedSection, "interfaces", "qmp", "Interfaces", "Interfaces")
eth_section.addremove = False
wl_section = m:section(NamedSection, "interfaces", "qmp", "Wireless interfaces", "Wireless devices")
wl_section.addremove = False
--wl_section = m:section(NamedSection, "interfaces", "qmp", "Wireless interfaces", "Wireless devices")
--wl_section.addremove = False
-- Getting the physical (real) interfaces
......
......@@ -2,12 +2,10 @@ require("luci.sys")
m = Map("qmp", "Quick Mesh Project")
------------------
-- Section MAIN
------------------
s_wireless_main = m:section(NamedSection, "wireless", "qmp", "Wireless general options", "Wireless configuration")
s_wireless_main = m:section(NamedSection, "wireless", "qmp", "Wireless general options", "")
s_wireless_main.addremove = False
-- Driver selection
......@@ -24,11 +22,14 @@ bssid = s_wireless_main:option(Value,"bssid","BSSID")
--------------------
-- Section Wireless
--------------------
s_wireless = m:section(TypedSection, "wireless", "", "")
s_wireless = m:section(TypedSection, "wireless", "Wireless devices", "")
s_wireless.addremove = False
-- Device
dev = s_wireless:option(DummyValue,"device","Device")
-- MAC
mac = s_wireless:option(Value,"mac","MAC")
mac = s_wireless:option(DummyValue,"mac","MAC")
-- Mode
mode = s_wireless:option(ListValue,"mode","Mode")
......
<%+header%>
<div align="center">
<img src="/luci-static/resources/qmp/logo.png" width="180px" />
</div>
<h2>About qMp</h2>
<ul>
<li>QMP is firmware for embedded network devices based on OpenWRT GNU/linux operating system</li>
<li>It provides an easy way to set up networks using MESH it doesn't matter your they are either wired or WiFi or a mix of both</li>
<li>It is a fast and reliable way to extend an Internet uplink to end-users</li>
</ul>
<br />
<p>Visit our web page for more information: <a href="http://qmp.cat" target="_blank">qmp.cat</a> </p>
<%+footer%>
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