mwan3: fix reload handling
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 23 Oct 2020 06:15:54 +0000 (08:15 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 23 Oct 2020 06:15:57 +0000 (08:15 +0200)
When the interface section was changed, the changed configuration
options were not applied.
This commit adds the service reload handling again.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/etc/init.d/mwan3

index 595fabf7779e36aebb7f9f936569b12982804383..b7cf91eb175dbb5fa1e041fb81d4914f2428aa35 100755 (executable)
@@ -111,6 +111,11 @@ stop_service() {
        mwan3_unlock "command" "mwan3"
 }
 
+reload_service() {
+       stop
+       start
+}
+
 service_triggers() {
        procd_add_reload_trigger 'mwan3'
 }