aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2010-03-18 11:17:42 +0000
committerJohn Crispin <blogic@openwrt.org>2010-03-18 11:17:42 +0000
commitc7eb5514a407e6eb375e00dd304d53b155cc1c0d (patch)
tree61c89c848e857ccdd371fcc2a848f79fb67cbcd6
parent83ea215912e27e95e01a834c0d4a615d1cdc2ea8 (diff)
downloadupstream-c7eb5514a407e6eb375e00dd304d53b155cc1c0d.tar.gz
upstream-c7eb5514a407e6eb375e00dd304d53b155cc1c0d.tar.bz2
upstream-c7eb5514a407e6eb375e00dd304d53b155cc1c0d.zip
[br2684ctl] Allow UCI configuration of ATM QOS parameters per interface, signed off by Ithamar R. Adema
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20266 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/br2684ctl/files/br2684ctl4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/br2684ctl/files/br2684ctl b/package/br2684ctl/files/br2684ctl
index 739baabdd0..cff667014a 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() {