Changeset 48321


Ignore:
Timestamp:
2016-01-18T16:35:30+01:00 (2 years ago)
Author:
nbd
Message:

br2684ctl: resolve a boot time race condition with nas0 bringup by using explicit notification when init is done

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

    r47891 r48321  
    179179 
    180180define Package/br2684ctl/install 
    181         $(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/hotplug.d/atm 
     181        $(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/hotplug.d/atm $(1)/usr/sbin $(1)/lib/netifd 
     182        $(INSTALL_BIN) ./files/br2684-up $(1)/lib/netifd/br2684-up 
    182183        $(INSTALL_BIN) ./files/br2684ctl $(1)/etc/init.d/ 
    183184        $(INSTALL_DATA) ./files/atm.hotplug $(1)/etc/hotplug.d/atm/00-trigger 
    184         $(INSTALL_DIR) $(1)/usr/sbin 
    185185        $(INSTALL_BIN) \ 
    186186                ./files/br2684ctl_wrap \ 
  • trunk/package/network/utils/linux-atm/files/br2684ctl

    r47891 r48321  
    6161                /usr/sbin/br2684ctl_wrap "nas$unit" \ 
    6262                -c "$unit" -e "$encaps" -p "$payload" \ 
    63                 -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} 
     63                -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} \ 
     64                -S /lib/netifd/br2684-up 
    6465        procd_close_instance 
    65 } 
    66  
    67 service_running() { 
    68         . /lib/functions/network.sh 
    69  
    70         sleep 1 
    71         for path in /sys/class/net/nas*; do 
    72                 dev="${path##*/}" 
    73                 network_ready_device "$dev" 
    74         done 
    7566} 
    7667 
Note: See TracChangeset for help on using the changeset viewer.