From d6559c2b75b28272734ccf451906d76629bcb3bb Mon Sep 17 00:00:00 2001 From: Polynomialdivision Date: Sat, 4 Aug 2018 10:05:54 +0200 Subject: [PATCH] add reload --- files/dawn.init | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/files/dawn.init b/files/dawn.init index aec350b..db7cb38 100755 --- a/files/dawn.init +++ b/files/dawn.init @@ -8,6 +8,20 @@ STOP=50 PROG=/usr/sbin/dawn NAME=dawn +reload_service() +{ + if service_running; then + ubus call dawn reload_config + else + start + fi +} + +service_triggers() +{ + procd_add_reload_trigger "dawn" +} + start_service() { local _tcp_buffer