2 if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -a -x /sbin
/swconfig
]; then
4 set network.eth0=switch
5 set network.eth0.reset=1
6 set network.eth0.enable_vlan=1
7 set network.eth0_1=switch_vlan
8 set network.eth0_1.device=eth0
9 set network.eth0_1.vlan=1
10 set network.eth0_1.ports="0 1 2 3 5t"
11 set network.eth0_2=switch_vlan
12 set network.eth0_2.device=eth0
13 set network.eth0_2.vlan=2
14 set network.eth0_2.ports="4 5t"
19 if [ -n "$HAS_SWITCH" -o \
20 -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" -o \
21 -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:10" ]; then
23 set network.lan.ifname=eth0.1
24 set network.wan=interface
25 set network.wan.ifname=eth0.2
26 set network.wan.proto=dhcp
32 [ -z "$HAS_SWITCH" -a -d /sys
/class
/net
/eth1
] && {
34 set network.wan=interface
35 set network.wan.ifname=eth1
36 set network.wan.proto=dhcp
This page took 0.043069 seconds and 5 git commands to generate.