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>
19 lines
470 B
Bash
19 lines
470 B
Bash
#!/bin/sh
|
|
# UCI Change Tracking Hook
|
|
# Called when configs are modified via LuCI/uci commit
|
|
#
|
|
# Usage: uci-track <config> [action] [user]
|
|
|
|
CONFIG="$1"
|
|
ACTION="${2:-commit}"
|
|
USER="${3:-$(logread -l 1 | grep -oE 'luci:.*' | cut -d: -f2 | cut -d' ' -f1)}"
|
|
|
|
[ -z "$CONFIG" ] && exit 0
|
|
|
|
# Check if vault is enabled
|
|
ENABLED=$(uci -q get config-vault.global.enabled)
|
|
[ "$ENABLED" = "1" ] || exit 0
|
|
|
|
# Track the change
|
|
/usr/sbin/configvaultctl track "$CONFIG" "$ACTION" "$USER"
|