Changeset 26992 for branches/backfire


Ignore:
Timestamp:
2011-05-24T11:37:32+02:00 (5 years ago)
Author:
nbd
Message:

base-files: fix brcm-2.4 issues in r26991

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/base-files/files/lib/network/config.sh

    r26991 r26992  
    191191                                        $DEBUG brctl addif "br-$config" "$iface" 
    192192                                        $DEBUG brctl stp "br-$config" $stp 
    193                                         [ -z "$macaddr" ] && macaddr="$(cat /sys/class/net/$iface/address)" 
    194                                         $DEBUG ifconfig "br-$config" hw ether $macaddr up 
     193                                        [ -z "$macaddr" -a -e "/sys/class/net/$iface/address" ] && macaddr="$(cat /sys/class/net/$iface/address)" 
     194                                        $DEBUG ifconfig "br-$config" ${macaddr:+hw ether "${macaddr}"} up 
    195195                                        # Creating the bridge here will have triggered a hotplug event, which will 
    196196                                        # result in another setup_interface() call, so we simply stop processing 
Note: See TracChangeset for help on using the changeset viewer.