mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-03 06:31:15 +04:00
adjust switch default configs for the swconfig api change
SVN-Revision: 19209
This commit is contained in:
1 parent
54bbc30687
commit
3cc98b09f7
2 files changed
+3
-1
No files matched your search
@@ -15,7 +15,8 @@ config interface wan
|
||||
option ifname eth1
|
||||
option proto dhcp
|
||||
|
||||
config switch eth0
|
||||
config switch
|
||||
option name eth0
|
||||
option reset 1
|
||||
option enable_vlan 1
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -a -x /sbin/swconfig ]; then
|
||||
uci batch <<EOF
|
||||
set network.eth0=switch
|
||||
set network.eth0.name=eth0
|
||||
set network.eth0.reset=1
|
||||
set network.eth0.enable_vlan=1
|
||||
set network.eth0_1=switch_vlan
|
||||
|
||||
Reference in new issue
Block a user