ar71xx: connect GMAC0 to the internal switch on DB120
[openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / vlan-migration
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 local dev="$(uci -q get network.@switch_vlan[0].device)"
7 local vlan="$(uci -q get network.@switch_vlan[0].vlan)"
8
9 if [ "$dev" = "rtl8366s" ] && [ "$vlan" = 0 ]; then
10 logger -t vlan-migration "VLAN 0 is invalid for RTL8366s, changing to 1"
11 uci set network.@switch_vlan[0].vlan=1
12 uci commit network
13 fi
This page took 0.042513 seconds and 5 git commands to generate.