New packages: - secubox-app-config-vault: Git-based config versioning CLI (configvaultctl) - luci-app-config-vault: KISS-themed dashboard with status rings Features: - 9 configuration modules (users, network, services, security, etc.) - Auto-commit and auto-push to private Gitea repository - Export/import clone tarballs for device provisioning - Commit history browser with restore capability Also adds System Hardware Report to secubox-app-reporter: - CPU/Memory/Disk/Temperature gauges with animations - Environmental impact card (power/kWh/CO₂ estimates) - Health recommendations based on system metrics - Debug log viewer with severity highlighting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
547 B
Bash
31 lines
547 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
STOP=10
|
|
USE_PROCD=1
|
|
|
|
PROG=/usr/sbin/configvaultctl
|
|
|
|
start_service() {
|
|
local enabled
|
|
config_load config-vault
|
|
config_get enabled global enabled "1"
|
|
|
|
[ "$enabled" = "1" ] || return 0
|
|
|
|
# Initialize vault if not done
|
|
[ -d "/srv/config-vault/.git" ] || $PROG init
|
|
|
|
# Do initial backup on start
|
|
$PROG backup >/dev/null 2>&1 &
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger "config-vault"
|
|
}
|
|
|
|
reload_service() {
|
|
# Re-backup on config reload
|
|
$PROG backup >/dev/null 2>&1 &
|
|
}
|