Files
wlan-ap/feeds/ucentral/ucentral-schema/files/etc/uci-defaults/99-ucentral-event
John Crispin fbcfddfbdc initial events support
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-27 12:18:37 +01:00

8 lines
225 B
Bash

#!/bin/sh
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
uci add_list event.config.wan_port=$w
done