mitmproxy haproxy_router.py: - Return 404 instead of routing to LuCI (8081) for missing routes - Block any routes that point to port 8081 - Add "WAF Says NO" themed 404 page with multi-layer WAF visual HAProxy (deployed on router): - Configure end_of_internet backend with custom errorfiles - Add "End of Internet" themed error pages for 5xx errors - Patched haproxyctl to include errorfile directives New package: secubox-app-openclaw - Personal AI assistant integration for SecuBox - Supports Anthropic Claude, OpenAI, and Ollama providers - Chat integrations (Telegram, Discord, Slack) - Email/calendar automation support - CLI tool: openclawctl Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
41 lines
682 B
Bash
41 lines
682 B
Bash
#!/bin/sh /etc/rc.common
|
|
# SecuBox OpenClaw - Personal AI Assistant
|
|
# Copyright (C) 2026 CyberMind.fr
|
|
|
|
START=95
|
|
STOP=10
|
|
USE_PROCD=1
|
|
|
|
PROG=/usr/sbin/openclawctl
|
|
|
|
start_service() {
|
|
local enabled
|
|
config_load openclaw
|
|
config_get enabled main enabled '0'
|
|
|
|
[ "$enabled" = "1" ] || {
|
|
echo "OpenClaw is disabled. Enable with: uci set openclaw.main.enabled=1"
|
|
return 0
|
|
}
|
|
|
|
procd_open_instance
|
|
procd_set_param command $PROG service-run
|
|
procd_set_param respawn 3600 5 5
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_close_instance
|
|
}
|
|
|
|
stop_service() {
|
|
$PROG service-stop
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger "openclaw"
|
|
}
|
|
|
|
reload_service() {
|
|
stop
|
|
start
|
|
}
|