make use of the adm6996 switch for atheros devices that support it (autodetected...
[openwrt/staging/florian.git] / target / linux / atheros / base-files / etc / uci-defaults / network
1 #!/bin/sh
2 if [ -e "/sys/bus/mdio_bus/drivers/Infineon ADM6996/0:00" ]; then
3 uci batch <<EOF
4 set network.lan.ifname=eth0.0
5 set network.wan=interface
6 set network.wan.ifname=eth0.1
7 set network.wan.proto=dhcp
8 commit network
9 EOF
10 fi