qosmngr: remove reference to db layer2 option

This commit is contained in:
Sukru Senli 2020-04-22 11:40:35 +02:00
parent 0292918ef4
commit ec443bbb91

View file

@ -3,7 +3,8 @@
. /lib/functions.sh
ethwan="$(db -q get hw.board.ethernetWanPort)"
is_l2="$(db -q get hw.board.layer2)"
cpu_model="$(grep Hardware /proc/cpuinfo | awk '{print$NF}')"
generate_queue(){
section="$1"
@ -15,8 +16,11 @@ generate_queue(){
fi
local no_of_q="0 1 2 3 4 5 6 7"
if [ $is_l2 -eq 1 -a $is_lan -eq 1 ]; then
no_of_q="0 1 2 3"
if [ $is_lan -eq 1 ]; then
case $cpu_model in
BCM968*) no_of_q="0 1 2 3" ;;
esac
fi
i=0