package: linux-atm: br2684ct: fix nas interface bringup on boot

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
master
Jonas Gorski 12 years ago
parent c8a0166212
commit c9d7a96ac8
  1. 2
      package/linux-atm/Makefile
  2. 8
      package/linux-atm/files/br2684ctl

@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=linux-atm PKG_NAME:=linux-atm
PKG_VERSION:=2.5.2 PKG_VERSION:=2.5.2
PKG_RELEASE:=3 PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME) PKG_SOURCE_URL:=@SF/$(PKG_NAME)

@ -1,5 +1,8 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
. /lib/functions/network.sh
START=50 START=50
SERVICE_DAEMONIZE=1 SERVICE_DAEMONIZE=1
@ -44,10 +47,15 @@ start_daemon() {
local circuit="$atmdev.$vpi.$vci" local circuit="$atmdev.$vpi.$vci"
network_defer_device "nas$unit"
SERVICE_PID_FILE="/var/run/br2684ctl-$circuit.pid" \ SERVICE_PID_FILE="/var/run/br2684ctl-$circuit.pid" \
service_start /usr/sbin/br2684ctl \ service_start /usr/sbin/br2684ctl \
-c "$unit" -e "$encaps" -p "$payload" \ -c "$unit" -e "$encaps" -p "$payload" \
-a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
sleep 1
network_ready_device "nas$unit"
} }
stop_daemon() { stop_daemon() {

Loading…
Cancel
Save