feat(packaging): add polkit policy, systemd units and PKGBUILD

This commit is contained in:
ahp
2026-10-15 14:29:19 +03:30
parent d81477c5f9
commit 7f11dd2c01
4 changed files with 90 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=Re-apply prx proxy routing
Documentation=man:prx(1)
After=network-online.target
Wants=network-online.target
# Only run when prx was enabled (state snapshot exists).
ConditionPathExists=/run/prx/state.json
[Service]
Type=oneshot
# `prx on` is idempotent: it re-detects the gateway and refreshes the rules.
ExecStart=/usr/bin/prx on
RemainAfterExit=no
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Periodically re-apply prx proxy routing (handles DHCP/gateway changes)
[Timer]
Unit=prx-reapply.service
OnBootSec=1min
OnUnitActiveSec=5min
Persistent=false
[Install]
WantedBy=timers.target