package: linux-atm: br2684ct: fix nas interface bringup on boot
authorJonas Gorski <jogo@openwrt.org>
Thu, 9 Aug 2012 13:13:26 +0000 (13:13 +0000)
committerJonas Gorski <jogo@openwrt.org>
Thu, 9 Aug 2012 13:13:26 +0000 (13:13 +0000)
Give nas interface time to setup them selves before configuring them.
Should fix #11826.

Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
SVN-Revision: 33074

package/linux-atm/Makefile
package/linux-atm/files/br2684ctl

index 1ac0a219a2900c662d56f73a651e69a9cf4d379b..4543f7aca4360f7e2625c22ab2ed7e973d57ca7e 100644 (file)
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=linux-atm
 PKG_VERSION:=2.5.2
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
index b2199e6307c307ed57b755238b2a993113882de7..cd53f0481b0625f74f4662c3fdc3e10b44ea2345 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh /etc/rc.common
 
+
+. /lib/functions/network.sh
+
 START=50
 
 SERVICE_DAEMONIZE=1
@@ -43,11 +46,16 @@ start_daemon() {
        config_get sendsize "$cfg" sendsize
 
        local circuit="$atmdev.$vpi.$vci"
-       
+
+       network_defer_device "nas$unit"
+
        SERVICE_PID_FILE="/var/run/br2684ctl-$circuit.pid" \
        service_start /usr/sbin/br2684ctl \
                -c "$unit" -e "$encaps" -p "$payload" \
                -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
+       sleep 1
+
+       network_ready_device "nas$unit"
 }
 
 stop_daemon() {