mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-06-30 15:54:07 +00:00
Compare commits
6 Commits
9b8144073f
...
c043c5fca8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c043c5fca8 | ||
| 10d22f05b7 | |||
|
|
5ece3f1208 | ||
| 5ca4ecf455 | |||
|
|
ace77976fa | ||
| 4ffd66bb2d |
|
|
@ -1,3 +1,31 @@
|
|||
secubox-toolbox (2.6.31-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* ad_ghost: remove ad placeholders entirely (#584, reverses #576). Ghosted
|
||||
ad slots now collapse with display:none — no black-hole/void, the space
|
||||
disappears. Host-blocking (204) still saves the bandwidth.
|
||||
|
||||
-- Gerald KERMA <devel@cybermind.fr> Sun, 14 Jun 2026 14:00:00 +0200
|
||||
|
||||
secubox-toolbox (2.6.30-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* ad_ghost: ghosted ads become a CSS "black hole" placeholder (#576).
|
||||
Instead of display:none (a collapsed blank gap), the ghosted ad slot is
|
||||
a layered dark void — radial-gradient background + inset glow + a glowing
|
||||
accretion-disc via ::after, real content hidden. Intentional reclaimed
|
||||
space, R3+/R4, toggle via the ad_ghost filter.
|
||||
|
||||
-- Gerald KERMA <devel@cybermind.fr> Sun, 14 Jun 2026 13:30:00 +0200
|
||||
|
||||
secubox-toolbox (2.6.29-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* fix(postinst): portal reliably restarts after dpkg upgrade (#581). The
|
||||
upgrade SIGTERMs the units before postinst runs, so the old try-restart
|
||||
loop was a no-op on the already-stopped portal → secubox-toolbox.service
|
||||
stayed dead → kbin 503 (hit twice 2026-06-14). Now ENABLED units get a
|
||||
full `restart` (starts even if stopped); others keep `try-restart`.
|
||||
|
||||
-- Gerald KERMA <devel@cybermind.fr> Sun, 14 Jun 2026 13:00:00 +0200
|
||||
|
||||
secubox-toolbox (2.6.28-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* Eye graph: hide all IP nodes + cap clients list (#575).
|
||||
|
|
|
|||
|
|
@ -231,14 +231,15 @@ fi
|
|||
fi
|
||||
fi
|
||||
|
||||
# Phase 10 (#501 perf) : on UPGRADE ($2 = previous version), try-restart
|
||||
# the long-running daemons so the new code is live without operator
|
||||
# intervention. dh_installsystemd ships --no-start --no-enable in
|
||||
# debian/rules so without this loop secubox-toolbox.service stays dead
|
||||
# post-upgrade until reboot (caught 2026-06-09 : kbin.gk2 503'd for 5 min
|
||||
# after the 2.5.0 → 2.5.1 upgrade because the unit was SIGTERMed and
|
||||
# never restarted). try-restart is a no-op when the unit is not
|
||||
# running, so it's safe on fresh install / unconfigured boards.
|
||||
# Phase 10 (#501 perf) : on UPGRADE ($2 = previous version), bring the
|
||||
# long-running daemons back on the new code without operator action.
|
||||
# dh_installsystemd ships --no-start --no-enable in debian/rules.
|
||||
# #581 fix : the dpkg upgrade SIGTERMs the units BEFORE this postinst
|
||||
# runs, so `try-restart` (a no-op on a stopped unit) left
|
||||
# secubox-toolbox.service DEAD post-upgrade -> kbin 503 (caught twice on
|
||||
# 2026-06-14, first on 2026-06-09). So : ENABLED units get a full
|
||||
# `restart` (starts them even if currently stopped) ; everything else
|
||||
# keeps `try-restart` (preserve an operator's deliberate stop).
|
||||
if [ -n "${2:-}" ] && [ -d /run/systemd/system ]; then
|
||||
for unit in secubox-toolbox.service \
|
||||
secubox-toolbox-mitm.service \
|
||||
|
|
@ -246,7 +247,11 @@ fi
|
|||
secubox-toolbox-mitm-wg-worker@2.service \
|
||||
secubox-toolbox-mitm-wg-worker@3.service \
|
||||
secubox-toolbox-mitm-wg-worker@4.service ; do
|
||||
systemctl try-restart "$unit" 2>/dev/null || true
|
||||
if systemctl is-enabled --quiet "$unit" 2>/dev/null; then
|
||||
systemctl restart "$unit" 2>/dev/null || true
|
||||
else
|
||||
systemctl try-restart "$unit" 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -108,7 +108,11 @@ def _style_for(cats: dict) -> bytes:
|
|||
sels.extend(_COSMETIC[cat])
|
||||
if not sels:
|
||||
return b""
|
||||
rule = ",".join(sels) + "{display:none!important;visibility:hidden!important}"
|
||||
sel = ",".join(sels)
|
||||
# #584 — NO placeholder : collapse the ghosted ad slot entirely so the
|
||||
# space disappears (display:none), rather than leaving a void/black-hole.
|
||||
# Host-blocking (204) still saves the bandwidth ; this just hides the box.
|
||||
rule = sel + "{display:none!important;visibility:hidden!important;}"
|
||||
return (b"<style id=\"sbx-ghost-style\">" + rule.encode("utf-8") + b"</style>")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user