secubox-openwrt/package/secubox/secubox-app-device-intel/files/etc/init.d/device-intel
CyberMind-FR 57db9cfb40 feat: Add device-intel and dns-provider packages
Add 4 new packages implementing unified device intelligence and
DNS provider API management:

- secubox-app-dns-provider: dnsctl CLI with OVH, Gandi, Cloudflare
  adapters for DNS record CRUD, HAProxy vhost sync, propagation
  verification, and ACME DNS-01 wildcard certificate issuance
- luci-app-dns-provider: RPCD handler + LuCI views for provider
  settings and DNS record management
- secubox-app-device-intel: Aggregation layer merging mac-guardian,
  client-guardian, DHCP, P2P mesh, and exposure data with heuristic
  classification engine and USB/MQTT/Zigbee emulator modules
- luci-app-device-intel: RPCD handler + 5 LuCI views (dashboard,
  devices, emulators, mesh, settings) with shared API and CSS

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 15:47:20 +01:00

35 lines
566 B
Bash

#!/bin/sh /etc/rc.common
START=96
STOP=10
USE_PROCD=1
CACHE_DIR="/tmp/device-intel"
start_service() {
local enabled
config_load device-intel
config_get enabled main enabled 0
[ "$enabled" = "1" ] || return 0
# Ensure cache directory exists
mkdir -p "$CACHE_DIR"
}
stop_service() {
rm -f "${CACHE_DIR}"/cache*.json 2>/dev/null
}
reload_service() {
# Invalidate cache on config change
rm -f "${CACHE_DIR}"/cache*.json 2>/dev/null
}
service_triggers() {
procd_add_reload_trigger "device-intel"
}
status_service() {
/usr/sbin/device-intelctl status
}