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
613533eb
Commit
613533eb
authored
Jul 29, 2013
by
Simó Albert i Beltran
Browse files
Restart gwck after restarting or reloading the network. Closes #262.
parent
43c21b6e
Changes
5
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/init.d/qmp_autoconf
View file @
613533eb
...
...
@@ -57,6 +57,10 @@ configure() {
#Reloading network to avoid problems with next functions
/etc/init.d/network reload
if
/etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
#Configuring networking
echo
"[Configuring networking]"
...
...
packages/qmp-system/files/etc/qmp/bmx6health.sh
View file @
613533eb
...
...
@@ -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 @
613533eb
...
...
@@ -50,6 +50,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
()
{
...
...
@@ -61,6 +65,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
}
...
...
packages/qmp-system/files/etc/qmp/qmplua/network.lua
View file @
613533eb
...
...
@@ -113,7 +113,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 @
613533eb
...
...
@@ -115,7 +115,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