diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-08-09 13:13:26 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-08-09 13:13:26 +0000 |
commit | c9d7a96ac819cb81b20b668ae90d8835ba6ec3f1 (patch) | |
tree | 6675707143acea1df6f9b5e0fb36acbaf122c500 /package/linux-atm/files | |
parent | c8a01662123f194edfd4aa5bf35abd68c547e4f4 (diff) | |
download | mtk-20170518-c9d7a96ac819cb81b20b668ae90d8835ba6ec3f1.zip mtk-20170518-c9d7a96ac819cb81b20b668ae90d8835ba6ec3f1.tar.gz mtk-20170518-c9d7a96ac819cb81b20b668ae90d8835ba6ec3f1.tar.bz2 |
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
Diffstat (limited to 'package/linux-atm/files')
-rwxr-xr-x | package/linux-atm/files/br2684ctl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/package/linux-atm/files/br2684ctl b/package/linux-atm/files/br2684ctl index b2199e6..cd53f04 100755 --- a/package/linux-atm/files/br2684ctl +++ b/package/linux-atm/files/br2684ctl @@ -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() { |