Changeset 47891


Ignore:
Timestamp:
2015-12-14T12:02:12+01:00 (2 years ago)
Author:
nbd
Message:

linux-atm: add wrapper for br2684ctl to defer nasX device bringup

Fixes a race condition on netifd device bringup.

Signed-off-by: Felix Fietkau <nbd@…>

Location:
trunk/package/network/utils/linux-atm
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/utils/linux-atm/Makefile

    r47765 r47891  
    183183        $(INSTALL_DATA) ./files/atm.hotplug $(1)/etc/hotplug.d/atm/00-trigger 
    184184        $(INSTALL_DIR) $(1)/usr/sbin 
    185         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/ 
     185        $(INSTALL_BIN) \ 
     186                ./files/br2684ctl_wrap \ 
     187                $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl \ 
     188                $(1)/usr/sbin/ 
    186189endef 
    187190 
  • trunk/package/network/utils/linux-atm/files/br2684ctl

    r47830 r47891  
    5959        procd_open_instance 
    6060        procd_set_param command \ 
    61                 /usr/sbin/br2684ctl \ 
     61                /usr/sbin/br2684ctl_wrap "nas$unit" \ 
    6262                -c "$unit" -e "$encaps" -p "$payload" \ 
    6363                -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} 
Note: See TracChangeset for help on using the changeset viewer.