OpenWrt – Blame information for rev 4

Subversion Repositories:
Rev:
Rev Author Line No. Line
4 office 1 #!/bin/sh
2  
3 . /lib/functions/uci-defaults.sh
4  
5 board_config_update
6  
7 if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -o \
8 -e "/sys/bus/mdio_bus/drivers/IC+ IP17xx/0:00" ] && \
9 [ -x /sbin/swconfig ];
10 then
11 ucidef_add_switch "eth0" \
12 "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0"
13  
14 elif [ -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" -o \
15 -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:10" ];
16 then
17 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
18  
19 elif [ -d /sys/class/net/eth1 ]; then
20 ucidef_set_interfaces_lan_wan "eth0" "eth1"
21  
22 else
23 ucidef_set_interface_lan "eth0"
24 fi
25  
26 board_config_flush
27  
28 exit 0