zapretgui/packaging/linux/init/zapretgui-helper.runit-finish
loop-uh 47a1b0d7c4
All checks were successful
Zapret source guards / validate (push) Successful in 9s
Linux: runit service scripts are executable in git (the .deb and AppImage already set the bit)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 14:05:52 -05:00

6 lines
364 B
Shell
Executable file

#!/bin/sh
# runit runs this after the helper has stopped (installed as /etc/sv/zapretgui-helper/finish): the second net for a helper that
# was killed hard, so that no firewall table is left behind to cut the internet.
command -v nft >/dev/null 2>&1 && nft delete table inet zapretgui >/dev/null 2>&1
rm -f "${ZAPRETGUI_SOCKET:-/run/zapretgui/helper.sock}"
exit 0