Changeset 28824


Ignore:
Timestamp:
2011-11-07T22:44:03+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: create TL-WR{841N-v1,941ND} network config from uci-defaults

Location:
trunk/target/linux/ar71xx/base-files/etc
Files:
2 deleted
1 edited

Legend:

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

    r28823 r28824  
    1111set network.loopback.ipaddr='127.0.0.1' 
    1212set network.loopback.netmask='255.0.0.0' 
     13EOF 
     14} 
     15 
     16set_interface_raw() { 
     17        local cfg=$1 
     18        local ifname=$2 
     19 
     20        uci batch <<EOF 
     21set network.$cfg='interface' 
     22set network.$cfg.ifname='$ifname' 
     23set network.$cfg.proto='none' 
    1324EOF 
    1425} 
     
    100111        ;; 
    101112 
     113tl-wr841n-v1|\ 
     114tl-wr941nd) 
     115        set_interface_raw "eth" "eth0" 
     116        set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" 
     117        ;; 
     118 
    102119aw-nr580 |\ 
    103120bullet-m |\ 
Note: See TracChangeset for help on using the changeset viewer.