Merge pull request #1818 from dibdot/lxc_fix
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_qos.sh
1 #!/bin/sh
2 # sets up qos-scripts for the wan interface
3
4 . /lib/functions.sh
5 . $dir/functions.sh
6
7 if [ ! -f /etc/config/qos ]; then
8         echo "NOT setting up QOS because /etc/config/qos-scripts was not found"
9 else
10         uci batch <<- EOF
11                 set qos.wan.enabled=1
12                 set qos.wan.upload=$wan_up
13                 set qos.wan.download=$wan_down
14         EOF
15         uci_commitverbose "Setup QOS on WAN interface." qos
16
17 fi