- Add pyproject.toml with CLI entry point - Wrap __main__.py module-level code in main() function - Update config.py default lib_path to /usr/lib/kvm-rkllm/ - Update systemd service to use deb install paths - Create debian/kvm-rkllm/ with control, postinst, prerm, wrapper The package bundles librkllmrt.so (closed-source RK3588 NPU runtime) alongside Python source. LLM model not included (too large). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
273 B
Bash
Executable File
12 lines
273 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ "$1" = "configure" ]; then
|
|
# Ensure librkllmrt.so is discoverable by the dynamic linker
|
|
ldconfig 2>/dev/null || true
|
|
|
|
systemctl daemon-reload
|
|
systemctl enable rkllm-server.service
|
|
systemctl start rkllm-server.service || true
|
|
fi
|