mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 14:11:06 +02:00
adjust switch default configs for the swconfig api change
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19209 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
65c8d28d39
commit
f7997f15e2
@ -15,7 +15,8 @@ config interface wan
|
|||||||
option ifname eth1
|
option ifname eth1
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
|
||||||
config switch eth0
|
config switch
|
||||||
|
option name eth0
|
||||||
option reset 1
|
option reset 1
|
||||||
option enable_vlan 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
|
if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -a -x /sbin/swconfig ]; then
|
||||||
uci batch <<EOF
|
uci batch <<EOF
|
||||||
set network.eth0=switch
|
set network.eth0=switch
|
||||||
|
set network.eth0.name=eth0
|
||||||
set network.eth0.reset=1
|
set network.eth0.reset=1
|
||||||
set network.eth0.enable_vlan=1
|
set network.eth0.enable_vlan=1
|
||||||
set network.eth0_1=switch_vlan
|
set network.eth0_1=switch_vlan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user