Ignore:
Timestamp:
2012-03-13T13:25:28+01:00 (4 years ago)
Author:
jow
Message:

[package] base-files-network: configure vlan interface name type immediately before the vconfig add calls, fixes race condition (#11127)

File:
1 edited

Legend:

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

    r28942 r30919  
    8484        [ "$1" = "$vif" ] || ifconfig "$1" >/dev/null 2>/dev/null || { 
    8585                ifconfig "$vif" up 2>/dev/null >/dev/null || add_vlan "$vif" 
     86                $DEBUG vconfig set_name_type DEV_PLUS_VID_NO_PAD 
    8687                $DEBUG vconfig add "$vif" "${1##*\.}" 
    8788                return 0 
     
    219220                                        $DEBUG brctl stp "br-$config" $stp 
    220221                                        [ -z "$macaddr" ] && macaddr="$(cat /sys/class/net/$iface/address)" 
    221                                         echo $igmp_snooping > /sys/devices/virtual/net/br-$config/bridge/multicast_snooping 2>/dev/null 
     222                                        [ -e /sys/devices/virtual/net/br-$config/bridge/multicast_snooping ] && \ 
     223                                                echo $igmp_snooping > /sys/devices/virtual/net/br-$config/bridge/multicast_snooping 
    222224                                        $DEBUG ifconfig "br-$config" hw ether $macaddr up 
    223225                                        # Creating the bridge here will have triggered a hotplug event, which will 
Note: See TracChangeset for help on using the changeset viewer.