dynamic-vlan: fix regression introduced by the 21.02 update

board.json uses device instead of ifname.

Fixes: WIFI-4420
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-09-27 12:55:48 +02:00
parent a37ed25128
commit 5d642d0325

View File

@@ -6,7 +6,7 @@ USE_PROCD=1
PROG=/usr/sbin/dynamic-vlan
start_service() {
wan=$(cat /etc/board.json | jsonfilter -e '@.network.wan.ifname')
wan=$(cat /etc/board.json | jsonfilter -e '@.network.wan.device')
procd_open_instance
procd_set_param command "$PROG" $wan
procd_set_param respawn