Changeset 9343


Ignore:
Timestamp:
2007-10-18T15:07:28+02:00 (10 years ago)
Author:
florian
Message:

Turn on stp by default for bridges (#2476)

Location:
trunk/package/base-files/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/config/network

    r7349 r9343  
    1313        option ipaddr   192.168.1.1 
    1414        option netmask  255.255.255.0 
     15        option stp      on 
  • trunk/package/base-files/files/lib/network/config.sh

    r9159 r9343  
    8989        # Setup bridging 
    9090        config_get iftype "$config" type 
     91        config_get stp "$config" stp 
    9192        case "$iftype" in 
    9293                bridge) 
     
    100101                                        $DEBUG ifconfig "br-$config" up 
    101102                                        $DEBUG brctl addif "br-$config" "$iface" 
     103                                        $DEBUG brctl stp "br-$config" ${stp:-on} 
    102104                                        # Creating the bridge here will have triggered a hotplug event, which will 
    103105                                        # result in another setup_interface() call, so we simply stop processing 
Note: See TracChangeset for help on using the changeset viewer.