mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
8 lines
225 B
Bash
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
|