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
46c24d23
Commit
46c24d23
authored
Jul 20, 2011
by
hakais
Browse files
Fixed autoconf problem
parent
d071dba9
Changes
3
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/init.d/qmp_autoconf
View file @
46c24d23
...
...
@@ -16,10 +16,11 @@ configure() {
echo
"[Configuring networking]"
.
$QMP_DIR
/qmp_functions.sh
qmp_configure
/etc/init.d/network restart
#
/etc/init.d/network restart
# /etc/init.d/bmx6 restart
touch
"
$CONTROL_FILE
"
echo
"Done"
echo
"Done, rebooting system to complete configuration"
reboot
}
start
()
{
...
...
packages/qmp-small-node/files/etc/qmp/qmp_common.sh
View file @
46c24d23
...
...
@@ -27,6 +27,9 @@ qmp_get_wifi_mac_devices() {
echo
"
$(
ip
link
|
grep
-A1
-E
": (wifi|wlan).: "
|
grep link
|
cut
-d
' '
-f6
)
"
}
qmp_get_dev_from_mac
()
{
ip l |
grep
$1
-i
-B1
|
grep
-v
\@
|
grep
-v
ether |
awk
'{print $2}'
|
tr
-d
:
}
reverse_order
()
{
echo
"
$@
"
|
awk
'{for (i=NF; i>0; i--) printf("%s ",$i);print ""}'
}
...
...
packages/qmp-small-node/files/usr/lib/lua/luci/model/cbi/qmp/wireless.lua
View file @
46c24d23
...
...
@@ -46,7 +46,15 @@ s_wireless:option(Value,"name","Wireless name")
--local device = m:get(s_wireless, "channel")
--device = m:get(s_wireless,"channel")
channel
=
s_wireless
:
option
(
Value
,
"channel"
,
"Channel"
)
channel
=
s_wireless
:
option
(
ListValue
,
"channel"
,
"Channel"
)
function
channel
.
cfgvalue
(
self
,
section
)
local
dev
=
m
.
uci
:
get
(
"wireless"
,
section
,
"device"
)
for
_
,
ch
in
ipairs
(
luci
.
sys
.
wifi
.
channels
(
dev
))
do
channel
:
value
(
ch
.
channel
,
ch
.
channel
)
end
return
ListValue
.
cfgvalue
(
self
,
section
)
end
return
m
...
...
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