van-leds: drive the R5C power/LAN/WAN/WiFi LEDs (ENABLE_LEDS, LED_* vars, post-check probe)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KqhjP7nud5gdBg25zCiRk9
This commit is contained in:
2026-09-23 22:04:11 -04:00
co-authored by Claude Sonnet 5
parent e2036c295d
commit 0f643be719
9 changed files with 382 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=NanoPi R5C front-panel LEDs (power / LAN / WAN / WiFi)
After=van-failover.service
# Restart limit: max 5 restarts per 5 minutes, then stay failed (as the other van services)
StartLimitIntervalSec=300
StartLimitBurst=5
[Service]
Type=simple
ExecStartPre=-/sbin/modprobe ledtrig-netdev
ExecStart=/usr/local/sbin/van-leds
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target