From: Thibaut VARÈNE Date: Thu, 27 Jan 2022 11:05:32 +0000 (+0100) Subject: coova-chilli: add interface_trigger "wan" X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8c78c33fedb09673044e5f604e4714b749dfc004;p=openwrt-packages.git coova-chilli: add interface_trigger "wan" This intends to replace the hotplug script. It still hardcodes "wan" interface name (as several other packages do) for lack of a deterministic way to detect the actual wan iface before it is brought up, but at least it is fully integrated with procd and will not start a disabled service. The interface trigger forcefully restarts chilli as a simple reload may not be sufficient to recover from wan changes. Signed-off-by: Thibaut VARÈNE --- diff --git a/net/coova-chilli/files/chilli.init b/net/coova-chilli/files/chilli.init index d5c0ce4c4..6770e94ac 100644 --- a/net/coova-chilli/files/chilli.init +++ b/net/coova-chilli/files/chilli.init @@ -6,6 +6,7 @@ USE_PROCD=1 service_triggers() { procd_add_reload_trigger "chilli" + procd_add_interface_trigger "interface.*.up" "wan" /etc/init.d/chilli restart } config_cb() {