New packages: - secubox-app-cyberfeed: Core RSS aggregator service - Pure shell script, OpenWrt compatible - Cyberpunk emoji injection based on content keywords - Caching with configurable TTL - JSON and HTML output with neon/glitch effects - RSS-Bridge support for social media (Facebook, Twitter, YouTube) - luci-app-cyberfeed: LuCI dashboard with cyberpunk theme - Dashboard with stats, quick actions, recent items - Feed management with add/delete - RSS-Bridge templates for easy social media setup - Preview with category filtering - Settings page for service configuration Features: - Auto-emojification (security, tech, mystical themes) - Dark neon UI with scanlines and glitch effects - RSS-Bridge integration for Facebook/Twitter/YouTube - Category-based filtering - Auto-refresh via cron (5 min default) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
638 B
Bash
39 lines
638 B
Bash
#!/bin/sh /etc/rc.common
|
|
# CyberFeed init script
|
|
|
|
START=95
|
|
STOP=10
|
|
USE_PROCD=1
|
|
|
|
PROG=/usr/bin/cyberfeed
|
|
|
|
start_service() {
|
|
local enabled
|
|
config_load cyberfeed
|
|
config_get enabled main enabled 0
|
|
|
|
[ "$enabled" = "1" ] || return 0
|
|
|
|
# Create directories
|
|
mkdir -p /tmp/cyberfeed/cache /tmp/cyberfeed/output
|
|
|
|
# Create web symlink
|
|
[ -L /www/cyberfeed/index.html ] || ln -sf /tmp/cyberfeed/output/index.html /www/cyberfeed/index.html 2>/dev/null
|
|
|
|
# Run initial sync
|
|
$PROG sync &
|
|
}
|
|
|
|
stop_service() {
|
|
# Nothing to stop - runs via cron
|
|
:
|
|
}
|
|
|
|
reload_service() {
|
|
$PROG sync &
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger "cyberfeed"
|
|
}
|