mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Enable SQM autorate if min rate is 0
This commit is contained in:
parent
c4328a5bdb
commit
d889f6f629
1 changed files with 2 additions and 2 deletions
|
@ -24,11 +24,11 @@ _config_autorate() {
|
|||
config_get min_download "$1" min_download "0"
|
||||
config_get download "$1" download "0"
|
||||
config_get max_download "$1" max_download "0"
|
||||
[ "${min_download}" == "0" ] || [ "${max_download}" == "0" ] || [ "${download}" == "0" ] && return
|
||||
[ "${max_download}" == "0" ] || [ "${download}" == "0" ] && return
|
||||
config_get min_upload "$1" min_upload "0"
|
||||
config_get upload "$1" upload "0"
|
||||
config_get max_upload "$1" max_upload "0"
|
||||
[ "${min_upload}" == "0" ] || [ "${max_upload}" == "0" ] || [ "${upload}" == "0" ] && return
|
||||
[ "${max_upload}" == "0" ] || [ "${upload}" == "0" ] && return
|
||||
# config_get interface "$1" interface
|
||||
# cp /usr/share/sqm-autorate/cake-autorate_template.sh /usr/share/sqm-autorate/cake-autorate_config.${interface}.sh
|
||||
cp /usr/share/sqm-autorate/config_template.sh /usr/share/sqm-autorate/config.$1.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue