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
a34362ac
Commit
a34362ac
authored
Jul 31, 2013
by
p4u
Browse files
Merge branch 'testing' of
ssh://qmp.cat:221/qmp
into testing
parents
f1652509
72a078c1
Changes
5
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/init.d/qmp_autoconf
View file @
a34362ac
...
...
@@ -17,6 +17,10 @@
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contributors:
# Simó Albert i Beltran
#
START
=
99
STOP
=
99
...
...
@@ -100,6 +104,10 @@ configure() {
#Reloading network to avoid problems with next functions
log Reloading network
/etc/init.d/network reload
if
/etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
#Configuring networking
log
"[Configuring networking]"
...
...
packages/qmp-system/files/etc/qmp/bmx6health.sh
View file @
a34362ac
...
...
@@ -28,6 +28,10 @@
echo
"[
$(
date
)
] There is no interface working, restarting network and bmx6."
logread
>
/tmp/bmx6_crash_
$(
date
+%Y%m%d_%H%M
)
.log
/etc/init.d/network restart
if
/etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
/etc/init.d/bmx6 restart
}
}
packages/qmp-system/files/etc/qmp/qmp_control.sh
View file @
a34362ac
...
...
@@ -55,6 +55,10 @@ configure_wifi() {
qmp_configure_wifi_initial
qmp_configure_wifi
/etc/init.d/network reload
if
/etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
}
apply_netserver
()
{
...
...
@@ -66,6 +70,10 @@ configure_network() {
[
-f
"/etc/init.d/olsrd"
]
&&
/etc/init.d/olsrd restart
bmx6
-c
--configReload
||
/etc/init.d/bmx6 restart
/etc/init.d/network reload
if
/etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
/etc/init.d/dnsmasq restart
apply_netserver
qmp_restart_firewall
...
...
packages/qmp-system/files/etc/qmp/qmplua/network.lua
View file @
a34362ac
...
...
@@ -19,6 +19,10 @@
The full GNU General Public License is included in this distribution in
the file called "COPYING".
Contributors:
Simó Albert i Beltran
--]]
...
...
@@ -113,7 +117,7 @@ end
--! @brief Restart the network daemon
function
network
.
restart_daemon
()
os.execute
(
'/etc/init.d/network restart'
)
os.execute
(
'/etc/init.d/network
restart; /etc/init.d/gwck enabled && /etc/init.d/gwck
restart'
)
end
return
network
packages/qmp-system/files/usr/lib/lua/luci/model/cbi/qmp/wireless.lua
View file @
a34362ac
...
...
@@ -17,6 +17,10 @@
The full GNU General Public License is included in this distribution in
the file called "COPYING".
Contributors:
Simó Albert i Beltran
--]]
require
(
"luci.sys"
)
...
...
@@ -117,7 +121,7 @@ end
function
m
.
on_commit
(
self
,
map
)
http
.
redirect
(
"/luci-static/resources/qmp/wait_short.html"
)
luci
.
sys
.
call
(
'(/etc/qmp/qmp_control.sh configure_wifi ; /etc/init.d/network reload)&'
)
luci
.
sys
.
call
(
'(/etc/qmp/qmp_control.sh configure_wifi ; /etc/init.d/network reload
; /etc/init.d/gwck enabled && /etc/init.d/gwck restart
)&'
)
end
...
...
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