Changeset 15473


Ignore:
Timestamp:
2009-04-29T01:27:46+02:00 (9 years ago)
Author:
nbd
Message:

atheros: configure eth1 as wan interface by default, if present

File:
1 edited

Legend:

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

    r15329 r15473  
    99set network.wan.proto=dhcp 
    1010EOF 
     11        HAS_SWITCH=1 
    1112fi 
    1213 
     
    2526set network.eth0_2.ports="4 5t" 
    2627EOF 
     28        HAS_SWITCH=1 
    2729fi 
    2830 
     31[ -z "$HAS_SWITCH" -a -d /sys/class/net/eth1 ] && { 
     32        uci batch <<EOF 
     33set network.wan=interface 
     34set network.wan.ifname=eth1 
     35set network.wan.proto=dhcp 
     36EOF 
     37} 
     38 
    2939uci commit network 
Note: See TracChangeset for help on using the changeset viewer.