From fa8fd970000bf8bb8e4f0d56cca58ae0b94547f3 Mon Sep 17 00:00:00 2001 From: Jakob Olsson Date: Thu, 10 Jan 2019 16:28:10 +0100 Subject: [PATCH] wifilife: call netmode to sync credentials on reload/config write --- wifilife/files/wifilife.init | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wifilife/files/wifilife.init b/wifilife/files/wifilife.init index 4c915c00c..62e21cddb 100644 --- a/wifilife/files/wifilife.init +++ b/wifilife/files/wifilife.init @@ -30,6 +30,12 @@ reload_service() { # procd_send_signal wifilife # use SIGHUP stop start + + config_load owsd + config_get enable ubusproxy enable + if [ "$enable" == "1" ]; then + ubus call netmode sync_wifilife + fi } service_triggers() {