Changeset 34385


Ignore:
Timestamp:
2012-11-26T11:36:23+01:00 (5 years ago)
Author:
marek
Message:

batman-adv: fix race condition between iface add and iface up

Signed-off-by: Gui Iribarren <gui@…>
Signed-off-by: Marek Lindner <lindner_marek@…>

Location:
packages/net/batman-adv
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • packages/net/batman-adv/Makefile

    r34221 r34385  
    110110 
    111111define KernelPackage/batman-adv/install 
    112         $(INSTALL_DIR) $(1)/etc/config $(1)/etc/hotplug.d/net $(1)/lib/batman-adv $(1)/usr/sbin 
     112        $(INSTALL_DIR) $(1)/etc/config $(1)/etc/hotplug.d/net $(1)/etc/hotplug.d/iface $(1)/lib/batman-adv $(1)/usr/sbin 
    113113        $(INSTALL_DATA) ./files/etc/config/batman-adv $(1)/etc/config 
    114114        $(INSTALL_DATA) ./files/lib/batman-adv/config.sh $(1)/lib/batman-adv 
    115115        $(INSTALL_BIN) ./files/etc/hotplug.d/net/99-batman-adv $(1)/etc/hotplug.d/net 
     116        $(INSTALL_BIN) ./files/etc/hotplug.d/iface/99-batman-adv $(1)/etc/hotplug.d/iface 
    116117        $(INSTALL_BIN) ./files/usr/sbin/batman-adv $(1)/usr/sbin 
    117118        $(BATCTL_INSTALL) 
  • packages/net/batman-adv/files/etc/hotplug.d/net/99-batman-adv

    r31317 r34385  
    99        add) 
    1010                [ -d /sys/class/net/$INTERFACE/mesh/ ] && bat_config "$INTERFACE" 
    11                 [ -d /sys/class/net/$INTERFACE/batman_adv/ ] && config_foreach bat_add_interface mesh "$INTERFACE" 
    1211                ;; 
    1312        remove) 
  • packages/net/batman-adv/files/lib/batman-adv/config.sh

    r32342 r34385  
    4949        local interfaces 
    5050 
    51         sleep 3s # some device (ath) is very lazy to start 
    5251        config_get interfaces $mesh interfaces 
    5352        for iface in $interfaces; do 
Note: See TracChangeset for help on using the changeset viewer.