- Add repo-deploy.sh script for staging and deploying packages - Replicate _all.ipk packages to all 6 architectures automatically - Add "Refresh Indexes" button to LuCI dashboard for local deployments - Add RPCD refresh method to regenerate Packages indexes on-device - Support architectures: aarch64_cortex-a72, aarch64_cortex-a53, aarch64_generic, x86_64, mips_24kc, mipsel_24kc Usage: ./secubox-tools/repo-deploy.sh stage --clean ./secubox-tools/repo-deploy.sh deploy root@192.168.255.1 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
628 B
Bash
Executable File
24 lines
628 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# Copyright 2026 CyberMind <contact@cybermind.fr>
|
|
# SecuBox Local Feed - Syncs package list to opkg on boot
|
|
|
|
START=99
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
# Copy local feed Packages file to opkg lists
|
|
# This works around opkg's signature verification bug for file:// feeds
|
|
if [ -f /www/secubox-feed/Packages ]; then
|
|
cp /www/secubox-feed/Packages /var/opkg-lists/secubox
|
|
logger -t secubox-feed "Local package feed synced: $(grep -c '^Package:' /var/opkg-lists/secubox) packages"
|
|
fi
|
|
}
|
|
|
|
stop_service() {
|
|
rm -f /var/opkg-lists/secubox
|
|
}
|
|
|
|
reload_service() {
|
|
start_service
|
|
}
|