Files
KVM-privacy/debian/kvm-bridge/DEBIAN/postinst
T
qiuruiandClaude Opus 4.7 9bb799b26a chore: snapshot in-progress Python-to-Rust service migration
Preserves the device's working-tree progress in Gitea as the canonical
source. This is an intermediate state of an unfinished refactor, kept so
the work is not lost and the merge into KVM can build on a known point.

- Python services removed (superseded by Rust): privacy_gateway,
  rkllm_server, mem_bridge.
- Rust services added/updated: privacy-gateway-rs, info-privacy-rs,
  kvm-agent-rs (new api-server and runner crates), embed-db-rs,
  npu_daemon (new rga / rga-sys / mpp-jpeg crates), rkllm-server.
- Debian packaging restructured: per-service control / postinst /
  postrm / conffiles and systemd units.

Compiled binaries (debian/*/usr/sbin), NPU model blobs and test-image
fixtures are excluded from version control - see .gitignore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 14:50:50 +00:00

23 lines
623 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$1" = "configure" ]; then
# Create config directory and default env file
mkdir -p /etc/kvm-bridge
if [ ! -f /etc/kvm-bridge/bridge.env ]; then
cat > /etc/kvm-bridge/bridge.env <<'EOF'
BRIDGE_DATA_DIR=/var/lib/kvm-bridge
EMBED_MODEL_PATH=/usr/share/kvm-bridge/models/embedder.onnx
EOF
chmod 644 /etc/kvm-bridge/bridge.env
fi
# Create runtime data directory
mkdir -p /var/lib/kvm-bridge
chown pi:pi /var/lib/kvm-bridge
systemctl daemon-reload
systemctl enable embed-db.service || true
systemctl start embed-db.service 2>/dev/null || true
fi