Changeset 253


Ignore:
Timestamp:
2005-02-18T00:19:24+01:00 (13 years ago)
Author:
wbx
Message:

support for Asus WL-500g

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/target/default/target_skeleton/etc/nvram.overrides

    r211 r253  
    33# This file handles the NVRAM quirks of various hardware. 
    44# THIS FILE IS NOT A REPLACEMENT FOR NVRAM 
     5 
     6[ "$(nvram get boardnum)"  = "asusX" ] && \ 
     7  [ "$(nvram get boardtype)"  = "bcm94710dev" ] && { 
     8  asus=1 
     9} 
    510 
    611# linksys bug; remove when not using static configuration for lan 
     
    3843} 
    3944 
     45# hack for asus wl-500g hardware 
     46[ $asus ] && { 
     47    FAILSAFE_lan_ifnames="eth0 eth2" 
     48} 
     49 
    4050# defaults if lan_ifname is missing 
    4151[ -z "$(nvram get lan_ifname)" ] && { 
    4252  NVRAM_lan_ifname="br0" 
    43   NVRAM_lan_ifnames="vlan0 vlan2 eth1 eth2 eth3" 
     53  NVRAM_lan_ifnames=${FAILSAFE_lan_ifnames:-"vlan0 vlan2 eth1 eth2 eth3"} 
    4454} 
    4555 
     
    4858   NVRAM_wan_ifname="vlan1" 
    4959   NVRAM_wan_proto="dhcp" 
     60   [ "$asus" ] && { 
     61     NVRAM_wan_ifname="eth1" 
     62   } 
    5063} 
    5164 
Note: See TracChangeset for help on using the changeset viewer.