luci-base: rpc: add call to enumerate builtin ethernet ports
authorJo-Philipp Wich <jo@mein.io>
Thu, 24 Aug 2023 14:44:40 +0000 (16:44 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 24 Aug 2023 14:48:01 +0000 (16:48 +0200)
commit98e37433e7f33b3e2ee751250e04b194a0aa6a0b
tree494077c8f15a92f325d87e5b193f0baeb54f6468
parent727c0895a4e73f42a3fe50178f2926c61b7c5b95
luci-base: rpc: add call to enumerate builtin ethernet ports

Add a new luci/getBuiltinEthernetPorts RPC call which returns a consolidated
list of known ethernet ports found in `/etc/board.json`.

Add an x86/64 specific workaround which attempts to enumerate missing
ethernet devices too.

Ref: #6534, #6538
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/share/rpcd/ucode/luci