Changeset 13


Ignore:
Timestamp:
2004-04-14T07:23:42+02:00 (14 years ago)
Author:
mbm
Message:

cleanups to allow networking.sh to run on other hardware types (asus)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/etc/networking.sh

    r12 r13  
    4040wifi_init () { 
    4141  echo "# --- wifi init ---" 
    42   hwaddr=$(nvram_get il0macaddr) 
    43   [ -z "$hwaddr" ] && hwaddr=$(nvram_get wl0_hwaddr) 
    44   if=$(mac2if $hwaddr) 
     42  # assume wifi is eth2, fall back to eth1 
     43  if="eth2" 
     44  if_valid $if || if="eth1" 
    4545  $DEBUG wlconf $if up 
    4646} 
     
    124124 
    125125# hacks for 1.x hardware 
    126 [ -z "$(nvram_get vlan0hwname)" ] && { 
     126[ "$(nvram get boardnum)"  = "42" ] && \ 
     127[ "$(nvram get boardtype)" = "bcm94710dev" ] && { 
    127128  echo "# 1.x HACK" 
    128129  vlan1hwname="et0" 
Note: See TracChangeset for help on using the changeset viewer.