Developing lightweight computation at the DSG edge

Commit d3aecebc authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Reload network after restarting it

Commit commit:630bd7a8

 fixed #464 but introduced a new bug in devices
with a switched Ethernet interface, where the VLAN interfaces would not
come up on time after restarting the network during the
autoconfiguration process.

Just reloading the network instantly applies the changes for wired
interfaces, but restarting it is needed to ensure wifi interfaces work
correctly. Restarting *and* then reloading ensures the network is up and
running before continuing the autoconfiguration process, therefore no
devices missdetection should occur.

Fixes #466
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 21658de0
......@@ -34,6 +34,7 @@ configure_wifi() {
qmp_configure_wifi
configure_network
/etc/init.d/network restart
/etc/init.d/network reload
if /etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
......@@ -52,6 +53,7 @@ configure_network() {
qmp_configure
qmp_bmx6_reload
/etc/init.d/network restart
/etc/init.d/network reload
if /etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
......
......@@ -851,6 +851,7 @@ qmp_configure_initial() {
qmp_configure_wifi_initial
qmp_configure_wifi
/etc/init.d/network restart
/etc/init.d/network reload
sleep 1
qmp_configure_smart_network
}
......
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