From b1fb66e0073b7f20e97425520909de5357deda9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20VAR=C3=88NE?= Date: Thu, 27 Jan 2022 12:00:38 +0100 Subject: [PATCH] coova-chilli: execute firewall cleanup at shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coova Chilli creates "undo" firewall scripts that are intended to be run when the daemon is shut down. Failure to do so results in leftover entries in firewall and duplicated ones if chilli is subsequently restarted. Execute these scripts when the service stops. Signed-off-by: Thibaut VARĂˆNE --- net/coova-chilli/files/chilli.init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/coova-chilli/files/chilli.init b/net/coova-chilli/files/chilli.init index 1c163a0d6..d5c0ce4c4 100644 --- a/net/coova-chilli/files/chilli.init +++ b/net/coova-chilli/files/chilli.init @@ -78,6 +78,9 @@ start_service() { } stop_service() { + for undofile in /var/run/chilli.tun*.sh; do + sh $undofile >& /dev/null + done rm -f /var/run/chilli_* }