From 8c78c33fedb09673044e5f604e4714b749dfc004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20VAR=C3=88NE?= Date: Thu, 27 Jan 2022 12:05:32 +0100 Subject: [PATCH] coova-chilli: add interface_trigger "wan" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- net/coova-chilli/files/chilli.init | 1 + 1 file changed, 1 insertion(+) 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() {