Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
d071dba9
Commit
d071dba9
authored
Jul 20, 2011
by
hakais
Browse files
Fixed luci error, and added new freatures
parent
7a4ac485
Changes
6
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/init.d/qmp_autoconf
View file @
d071dba9
...
...
@@ -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"
...
...
packages/qmp-small-node/files/usr/lib/lua/luci/controller/qmp.lua
View file @
d071dba9
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
...
...
packages/qmp-small-node/files/usr/lib/lua/luci/model/cbi/qmp/config.lua
View file @
d071dba9
...
...
@@ -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 i
nterfaces"
,
"
Ethernet devi
ces"
)
eth_section
=
m
:
section
(
NamedSection
,
"interfaces"
,
"qmp"
,
"
I
nterfaces"
,
"
Interfa
ces"
)
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
...
...
packages/qmp-small-node/files/usr/lib/lua/luci/model/cbi/qmp/wireless.lua
View file @
d071dba9
...
...
@@ -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
(
Dummy
Value
,
"mac"
,
"MAC"
)
-- Mode
mode
=
s_wireless
:
option
(
ListValue
,
"mode"
,
"Mode"
)
...
...
packages/qmp-small-node/files/usr/lib/lua/luci/view/qmp/overview.htm
0 → 100644
View file @
d071dba9
<
%+
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
%
>
packages/qmp-small-node/files/www/luci-static/resources/qmp/logo.png
0 → 100644
View file @
d071dba9
67.5 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment