Changeset 17384


Ignore:
Timestamp:
2009-08-24T23:25:07+02:00 (8 years ago)
Author:
nbd
Message:

adjust the default network config for atheros devices with IP175C (e.g. D-Link DIR-300), backport from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/8.09/target/linux/atheros/base-files/etc/uci-defaults/network

    r10877 r17384  
    99commit network 
    1010EOF 
     11elif [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" ]; then 
     12        uci batch <<EOF 
     13set network.eth0=switch 
     14set network.eth0.reset=1 
     15set network.eth0.enable_vlan=1 
     16set network.eth0_1=switch_vlan 
     17set network.eth0_1.device=eth0 
     18set network.eth0_1.vlan=1 
     19set network.eth0_1.ports="0 1 2 3 5t" 
     20set network.eth0_2=switch_vlan 
     21set network.eth0_2.device=eth0 
     22set network.eth0_2.vlan=2 
     23set network.eth0_2.ports="4 5t" 
     24set network.lan.ifname=eth0.1 
     25set network.wan=interface 
     26set network.wan.ifname=eth0.2 
     27set network.wan.proto=dhcp 
     28commit network 
     29EOF 
    1130fi 
Note: See TracChangeset for help on using the changeset viewer.