diff options
author | Thibaut VARÈNE <hacks@slashdirt.org> | 2022-01-27 12:00:38 +0100 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2022-01-29 21:02:28 -0800 |
commit | b1fb66e0073b7f20e97425520909de5357deda9e (patch) | |
tree | 91f26fd564124c09155c0c5e5f5b14e8f370ec09 /net/coova-chilli/files/chilli.init | |
parent | 06193dfdd6b3781f14afada30faa8952558d00b6 (diff) |
coova-chilli: execute firewall cleanup at shutdown
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 <hacks@slashdirt.org>
Diffstat (limited to 'net/coova-chilli/files/chilli.init')
-rw-r--r-- | net/coova-chilli/files/chilli.init | 3 |
1 files changed, 3 insertions, 0 deletions
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_* } |