3 # Copyright (C) 2010 OpenWrt.org
6 local dev
="$(uci -q get network.@switch_vlan[0].device)"
7 local vlan
="$(uci -q get network.@switch_vlan[0].vlan)"
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
This page took 0.042513 seconds and 5 git commands to generate.