ucentral-schema: cig.wf186w: wan_port set to eth0

Reset the ucentral UCI config 'event.config.wan_port' to eth0 for
the WF186W board

Signed-off-by: Paul White <paul@shasta.cloud>
This commit is contained in:
Paul White
2023-09-02 22:44:54 -07:00
committed by John Crispin
parent 082134bc43
commit 6a797e8a64

View File

@@ -1,5 +1,15 @@
#!/bin/sh
. /lib/functions.sh
case "$(board_name)" in
"cig,wf186w")
uci del event.config.wan_port
uci add_list event.config.wan_port=eth0
exit 0
;;
esac
wan=$(cat /etc/board.json | jsonfilter -e '@.network.wan.device')
[ -z "$wan" ] && eval $(jsonfilter -i /etc/board.json -e 'wan=@.network.wan.ports.*')
for w in $wan; do