zapretgui/packaging/linux/init/zapretgui-helper.runit-finish
loop-uh 0fa5facfbf
All checks were successful
Zapret source guards / validate (push) Successful in 9s
Windows-сборка / Dev Dev 21.1.7.310 опубликован
Linux: Void Linux (runit service, xbps libraries); the install no longer stops on a missing icon folder
initsys.sh recognises runit (process 1 'runit'), installs /etc/sv/zapretgui-helper (run, finish) and links it into
/var/service; install.sh installs libraries with xbps names. Tested in a Void chroot with the real xbps and runsvdir:
install under umask 077, helper supervised, restarted after kill -9, stop/start, uninstall. A missing
/usr/share/icons/hicolor stopped install.sh before the service was set up.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 11:34:03 -05:00

6 lines
364 B
Shell

#!/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