X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=contrib%2Fpackage%2Fmeshwizard%2Ffiles%2Fusr%2Fbin%2Fmeshwizard%2Fhelpers%2Fsetup_qos.sh;fp=contrib%2Fpackage%2Fmeshwizard%2Ffiles%2Fusr%2Fbin%2Fmeshwizard%2Fhelpers%2Fsetup_qos.sh;h=25884b30d523c0b797131caf49f90ea7a58d8760;hp=0000000000000000000000000000000000000000;hb=86503afdd9c35baa9c63ae1c838f228372269e93;hpb=7c0b1137efbc1e60e74e9c351878c40fc0ac460c diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_qos.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_qos.sh new file mode 100755 index 000000000..25884b30d --- /dev/null +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_qos.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# sets up qos-scripts for the wan interface + +. /lib/functions.sh +. $dir/functions.sh + +if [ ! -f /etc/config/qos ]; then + echo "NOT setting up QOS because /etc/config/qos-scripts was not found" +else + uci batch <<- EOF + set qos.wan.enabled=1 + set qos.wan.upload=$wan_up + set qos.wan.download=$wan_down + EOF + uci_commitverbose "Setup QOS on WAN interface." qos + +fi