mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:46:30 +02:00
[backfire] merge r22625
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22626 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
74a83bbdb2
commit
0083445406
13
target/linux/ar71xx/base-files/etc/uci-defaults/vlan-migration
Executable file
13
target/linux/ar71xx/base-files/etc/uci-defaults/vlan-migration
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2010 OpenWrt.org
|
||||
#
|
||||
|
||||
local dev="$(uci -q get network.@switch_vlan[0].device)"
|
||||
local vlan="$(uci -q get network.@switch_vlan[0].vlan)"
|
||||
|
||||
if [ "$dev" = "rtl8366s" ] && [ "$vlan" = 0 ]; then
|
||||
logger -t vlan-migration "VLAN 0 is invalid for RTL8366s, changing to 1"
|
||||
uci set network.@switch_vlan[0].vlan=1
|
||||
uci commit network
|
||||
fi
|
Loading…
Reference in New Issue
Block a user