openwrt-procd-init
Installation
SKILL.md
OpenWrt procd Init Scripts
Author init scripts against the actual rc.common + procd.sh contract, not generic SysV assumptions. All mechanics below were verified against the local OpenWrt source snapshot on 2026-09-02 (see Offline Baseline); cite line numbers when they drive a decision.
Determine Task Type
| If the user wants to... | Path |
|---|---|
| Run a daemon at boot with supervision | procd service (USE_PROCD=1) → Workflow A |
| Run a one-shot boot action (state fixup, license check) | plain rc.common script with boot() override → Workflow B |
| Make an existing script start at boot / diagnose "not effective at boot" | Workflow C (troubleshooting) |
| Configure UCI defaults on first boot | Hand-off → openwrt-uci-defaults |
| Package the script into an image / control auto-enable | Hand-off → openwrt-image-build |
Prerequisites / Preflight
Run on the target device (or confirm from its image manifest):