Changeset 26991 for branches/backfire


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

base-files: make the MAC address of bridge interfaces sticky to avoid ARP issues on wifi re-configuration (backport of r26990)

File:
1 edited

Legend:

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

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