- 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>
47 lines
837 B
Bash
Executable File
47 lines
837 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# SPDX-License-Identifier: MIT
|
|
# Meshname DNS init script
|
|
|
|
START=95
|
|
STOP=10
|
|
USE_PROCD=1
|
|
|
|
PROG=/usr/sbin/meshnamectl
|
|
NAME=meshname-dns
|
|
|
|
start_service() {
|
|
local enabled
|
|
config_load meshname-dns
|
|
config_get enabled main enabled 0
|
|
|
|
[ "$enabled" = "1" ] || return 0
|
|
|
|
# Create state directory
|
|
mkdir -p /var/lib/meshname-dns
|
|
mkdir -p /tmp/hosts
|
|
touch /tmp/hosts/meshname
|
|
|
|
# Start background sync daemon
|
|
procd_open_instance
|
|
procd_set_param command "$PROG" daemon
|
|
procd_set_param respawn
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_close_instance
|
|
|
|
logger -t meshname-dns "Meshname DNS started"
|
|
}
|
|
|
|
stop_service() {
|
|
logger -t meshname-dns "Meshname DNS stopped"
|
|
}
|
|
|
|
reload_service() {
|
|
# Re-announce local services
|
|
"$PROG" sync
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger "meshname-dns"
|
|
}
|