Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
realtek-poe/openwrt: Generate config from board.json
Styled after work provided by @svanheule, then reiterated by @howels. Before this commit, realtek-poe maintainers prioritized keeping realtek-poe simple; it was "[a tool to] take a config file and control the hardware ... [which speaks] UCI config on one end, and PoE protocol on the other"[^1]. We declined to support generating that config file previously. OpenWrt maintainer @blogic firmly disagreed[^2], because OpenWrt users were finding their devices starting with non-functional PoE (which is a violation of the principle of least surprise). It's been about a year since a solution to this problem was first provided[^3]. Change stance. Now, begin generating /etc/config/poe from board.json under OpenWrt (our only supported platform). It's in the community's best interest to at least provide a stop-gap until either: - other software actually uses realtek-poe outside of OpenWrt, or - another OpenWrt package uses /etc/config/poe to configure these PSEs at which point I'll revisit and do the integration work. A companion commit will be required to openwrt/packages.git. Signed-off-by: Martin Kennedy <[email protected]> [^1]: #41 (comment) [^2]: openwrt/openwrt#16838 (comment) [^3]: #31 Replaces: #31
- Loading branch information