Skip to content

Commit

Permalink
package: linux-atm: br2684ct: fix nas interface bringup on boot
Browse files Browse the repository at this point in the history
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33074 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
jogo committed Aug 9, 2012
1 parent 4c706d3 commit da98bed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/linux-atm/Makefile
Expand Up @@ -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)
Expand Down
10 changes: 9 additions & 1 deletion package/linux-atm/files/br2684ctl
@@ -1,5 +1,8 @@
#!/bin/sh /etc/rc.common


. /lib/functions/network.sh

START=50

SERVICE_DAEMONIZE=1
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit da98bed

Please sign in to comment.