diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-18 15:35:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-18 15:35:30 +0000 |
commit | f6e38ec125ddb1da51780e510c7943e76f61f88d (patch) | |
tree | 6c41a713b5f83fce07f89604b16fe4385bf2db3c /package/network/utils/linux-atm/files/br2684ctl | |
parent | 262f054c6e556b3c4e5c2ec334f3f7190a5abf0f (diff) | |
download | mtk-20170518-f6e38ec125ddb1da51780e510c7943e76f61f88d.zip mtk-20170518-f6e38ec125ddb1da51780e510c7943e76f61f88d.tar.gz mtk-20170518-f6e38ec125ddb1da51780e510c7943e76f61f88d.tar.bz2 |
br2684ctl: resolve a boot time race condition with nas0 bringup by using explicit notification when init is done
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48321
Diffstat (limited to 'package/network/utils/linux-atm/files/br2684ctl')
-rwxr-xr-x | package/network/utils/linux-atm/files/br2684ctl | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/package/network/utils/linux-atm/files/br2684ctl b/package/network/utils/linux-atm/files/br2684ctl index 1cac4df..0fa86bd 100755 --- a/package/network/utils/linux-atm/files/br2684ctl +++ b/package/network/utils/linux-atm/files/br2684ctl @@ -60,20 +60,11 @@ start_daemon() { procd_set_param command \ /usr/sbin/br2684ctl_wrap "nas$unit" \ -c "$unit" -e "$encaps" -p "$payload" \ - -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} + -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} \ + -S /lib/netifd/br2684-up procd_close_instance } -service_running() { - . /lib/functions/network.sh - - sleep 1 - for path in /sys/class/net/nas*; do - dev="${path##*/}" - network_ready_device "$dev" - done -} - service_triggers() { local script=$(readlink "$initscript") local name=$(basename ${script:-$initscript}) |