From 64aa8866b73dbf8e68affddaec1456a1be9861f2 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Tue, 22 Jun 2021 16:40:42 +0200 Subject: [PATCH] olsrd: reload if config changed via uci Fixes: https://github.com/openwrt/luci/issues/5139 Signed-off-by: Nick Hainke --- olsrd/files/olsrd4.init | 3 +++ olsrd/files/olsrd6.init | 3 +++ 2 files changed, 6 insertions(+) diff --git a/olsrd/files/olsrd4.init b/olsrd/files/olsrd4.init index 4aa8b22..ca71a42 100644 --- a/olsrd/files/olsrd4.init +++ b/olsrd/files/olsrd4.init @@ -33,6 +33,9 @@ start_service() { } service_triggers() { + # reload if config changed via uci + procd_add_reload_trigger "olsrd" + # restart on ifup interface events for n in $(olsrd_list_configured_interfaces $OLSRD); do procd_add_reload_interface_trigger $n /etc/init.d/$OLSRD reload diff --git a/olsrd/files/olsrd6.init b/olsrd/files/olsrd6.init index 25107d3..8b81019 100644 --- a/olsrd/files/olsrd6.init +++ b/olsrd/files/olsrd6.init @@ -34,6 +34,9 @@ start_service() { } service_triggers() { + # reload if config changed via uci + procd_add_reload_trigger "olsrd6" + # restart on ifup interface events for n in $(olsrd_list_configured_interfaces $OLSRD); do procd_add_reload_interface_trigger $n /etc/init.d/$OLSRD reload -- 2.30.2