diff options
author | John Crispin <john@openwrt.org> | 2010-03-18 11:17:42 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2010-03-18 11:17:42 +0000 |
commit | ceffb972eb8e0b15755d5a474b889d7824397330 (patch) | |
tree | 06186c6ace6f2ee348d2e5fd5120dcf928c04729 /package/br2684ctl | |
parent | b306cc489a14e03e56d8712561103921e54a9a4b (diff) | |
download | mtk-20170518-ceffb972eb8e0b15755d5a474b889d7824397330.zip mtk-20170518-ceffb972eb8e0b15755d5a474b889d7824397330.tar.gz mtk-20170518-ceffb972eb8e0b15755d5a474b889d7824397330.tar.bz2 |
Allow UCI configuration of ATM QOS parameters per interface, signed off by Ithamar R. Adema
SVN-Revision: 20266
Diffstat (limited to 'package/br2684ctl')
-rwxr-xr-x | package/br2684ctl/files/br2684ctl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/br2684ctl/files/br2684ctl b/package/br2684ctl/files/br2684ctl index 739baab..cff6670 100755 --- a/package/br2684ctl/files/br2684ctl +++ b/package/br2684ctl/files/br2684ctl @@ -15,6 +15,7 @@ start_daemon() { config_get vci "$cfg" vci config_get encaps "$cfg" encaps config_get payload "$cfg" payload + config_get qos "$cfg" qos case "$encaps" in 1|vc) encaps=1;; *) encaps=0;; @@ -23,7 +24,8 @@ start_daemon() { 0|routed) payload=0;; *) payload=1;; esac - br2684ctl -b -c "$unit" -e "$encaps" -p "$payload" -a "${atmdev:+$atmdev.}${vpi:-8}.${vci:-35}" + [ "$qos" ] && qos="-q $qos" + br2684ctl -b -c "$unit" -e "$encaps" -p "$payload" $qos -a "${atmdev:+$atmdev.}${vpi:-8}.${vci:-35}" } start() { |