Browse Source

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>
lilik-openwrt-22.03
Thibaut VARÈNE 3 years ago
committed by Rosen Penev
parent
commit
b1fb66e007
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      net/coova-chilli/files/chilli.init

+ 3
- 0
net/coova-chilli/files/chilli.init View File

@ -78,6 +78,9 @@ start_service() {
} }
stop_service() { stop_service() {
for undofile in /var/run/chilli.tun*.sh; do
sh $undofile >& /dev/null
done
rm -f /var/run/chilli_* rm -f /var/run/chilli_*
} }


Loading…
Cancel
Save